public class A extends B {
}
class B {
public B(String s) {
}
}
Select ALL that apply
The program has a compile error because A does not have a default constructor.
The program has a compile error because the default constructor of A invokes the default constructor of B, but B does not have a default constructor.
The program would compile fine if you add the following constructor into A: A(String s) {}
1
class B{ public B(String s{
Select ALL that apply
The program has a compile error because A does not have a default constructor
The program has a compile error because the default does not have a default constructor. constructor of A invokes the default constructor of B, but B
The program would compile fine if you add the following constructor into A(String s{}