c++中的构造函数初始化列表

三种情况下,必须在构造函数初始化列表中初始化成员:

1、const成员

2、引用成员

3、没有默认构造函数的成员

原文地址:https://www.cnblogs.com/hustxujinkang/p/4116137.html