试题详情
多项选择题Which two allow the class Thing to be instantiated using new Thing()?

A、 public class Thing { }

B、 public class Thing { public Thing() {} }

C、 public class Thing { public Thing(void) {} }

D、 public class Thing { public Thing(String s) {} }

E、 public class Thing { public void Thing() {} public Thing(String s) {} }

  • A,B
  • 关注下方微信公众号,在线模考后查看

热门试题