多选题Which statements concerning the following code are true?() 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(); } publi
题目
多选题
Which statements concerning the following code are true?() 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) {} }
AThe code will fail to compile.
BThe constructor in a that takes an int as an argument will never be called as a result of constructing an object of class b or c.
CClass c has three constructors.
DObjects of class b cannot be constructed.
EAt most one of the constructors of each class is called as a result of constructing an object of class c.