题目详情
单选题 如有已经定义好了一个类Student, 现在要定义类Derived,它是从Student私有派生的,定义类Derived的正确写法是()
A. class Derived::Student private{……}
B. class Derived:Student public {……}
C. class Derived:private Student{……}
D. class Derived:public Student{……}

学科:面向对象程序设计(C++/Java)
时间:2024-04-08 08:01:48
相关题目
相关作业
