• 2022-06-09
    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) {} }
  • 举一反三