题目内容:
若已定义了类Vehicle,则下列派生类定义中,错误的是
A.class Car:Vehicle{/*类体略*/},
B.class Car:public Car{/*类体略*/};
C.class Car:public Vehicle{/*类体略*/};
D.class Car:virtual public Vehicle{/*类体略*/};
参考答案:
若已定义了类Vehicle,则下列派生类定义中,错误的是
A.class Car:Vehicle{/*类体略*/},
B.class Car:public Car{/*类体略*/};
C.class Car:public Vehicle{/*类体略*/};
D.class Car:virtual public Vehicle{/*类体略*/};