If we do not explicitly define any constructors, then the compiler will generate the default constructor for us.

  • 如果没有为一个类显式定义任何构造函数,编译器将自动为这个类生成默认构造函数。
目录 查词历史