?
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
}
}
Join the Discussion
Login to post a comment or share your explanation.
Login