我有三个这样的课:
class A
{
public:
A(int a){}
};
class B: virtual public A
{
public:
B(char c):A(5){}
}
class C: virtual public B
{
public:
C():B("a"){} //VC++ tells me that "class A doesn't have default constructor
}
为什么C类的构造函数需要再次调用A类的构造函数?