问题详情

答题翼 > 问答 > 远程教育 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

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


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

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

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

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

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

参考答案
您可能感兴趣的试题