What will be the output of the following code

2. What will be the output of the following code?

a. Compilation error in line 1 (abstract method cannot be private)
b. Compilation error in line 2 (abstract class cannot have concrete method)
c. Compilation error in line 3 (abstract class cannot be extended)
d. Compilation error in line 4 (marks method should have public access modifiers. Transcribed Image Text: abstract class Student {
private abstract void addStudent (); // line 1
abstract void marks ();
public void transcript () { } // line 2
}
public class child extends Student { // line 3
void marks () {// line 4
}
}

-25-


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope