If a class does not define a default constructor, the compiler generates one automatically, initializing each data member to the default value of its associated type.

  • 如果一个类没有定义默认构造函数,则编译器会自动生成一个,同时将每个数据成员初始化为相关类型的默认值。
目录 查词历史