Hello guru's,
The answer for the following question is B and C, I couldn't understand the answer E.
Pls explain to me.
Thanks, Raghu/K
-------------------------------------------------
class A{
public A(){}
public A(int i) { this();}
}
class B extends A{
public boolean B(
String msg){return false;}
}
class C extends B{
private C() { super()
}
public C(String msg) {this();}
public C(int i){}
}
---------------------------------------
A. The code will fail to compile.
B. The constructor in A that takes an int as an argument will never be called as a result of constructing
an object of class B of C.
C. Class C define three constructors.
D. Objects of class B cannot be constructed.
E. At most one of the construcotrs of each class is called as a result of constucting an object of class.