class A{
A(String s){}
A(){}
}
class B extends A{
B(){}
B(String s){
super(s);
}
void test(){
// insert code here
}
}
Which of the below code can be insert at line 7 to make clean compilation ?
class A{
A(String s){}
A(){}
}
class B extends A{
B(){}
B(String s){
super(s);
}
void test(){
// insert code here
}
}
A. A a = new B();
B. A a = new B(5);
C. A a = new A(String s);
D. All of the above
E. None of these
Answer: Option A
Join The Discussion