A-A+

假设已经定义好了一个类student 现在要定义类derived 它是从student私有派生的 定义类derive

2018-12-02 04:10:37 学历考试 阅读

问题详情

假设已经定义好了一个类student,现在要定义类derived,它是从student私有派生的,定义类derived的正确写法是()。

A、“classderived::studentprived{//…};”

B、“classderived:studentpublic{//…};”

C、“classderived:privatestudent{//…};”

D、“classderived::studentpublicstuednt{//…};”

参考答案

考点: