If a class lacks a no-parameter constructor, but has other constructors, the compiler creates a default constructor.

 
  • 如果类缺少无参的构造函数,但有其它的构造函数,编译器创建默认的构造函数,这是正确的。
今日热词
目录 附录 查词历史