A-A+

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

2022-08-14 08:47:29 问答库 阅读 202 次

问题详情

假设已经定义好了一个类student,现在要定义类derived,它是从student私有派生的,定义类derived的正确写法是()。
A、“classderived::studentprived{//…};”
B、“classderived:studentpublic{//…};”
C、“classderived:privatestudent{//…};”
D、“classderived::studentpublicstuednt{//…};”

参考答案

参考答案:C

考点:定义,现在