多功能建筑商是否多次被称作“多面”? 所谓的建筑者是什么秩序? 这是否取决于继承名单上的顺序?
这里就是一个例子(它只是为了说明局势,没有真实生活的例子)。
class Base {};
class DerivedBaseOne : public Base {};
class DerivedBaseTwo : public Base {};
class Derived : public DerivedBaseTwo, public DerivedBaseOne
{};
//somewhere in the code, is Base() called two times here?
Derived * foo = new Derived();
<代码>Base(> 构造者称为两倍吗? 而建筑商称之为什么顺序? 第一种基础? Or DerivedBase One(
or DerivedBaseTwo(
first?>?