多选题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) {}   }
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 or c.

C

Class c has three constructors.

D

Objects of class b cannot be constructed.

E

At most one of the constructors of each class is called as a result of constructing an object of class c.

参考答案和解析
正确答案: B,A
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案