伙计们。我看到几个案例,例如:
class Derived:public Base{ public: Derived(...):Base(...){} }
什么情况或者有什么原则我们应该在 Derived ctor 初始化列表中显式初始化 Base ?谢谢
如果您想使用参数调用基本构造函数。