题海让大学四年没有难题
白天模式登陆

题目详情

单选题 如有已经定义好了一个类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)课程封面

学科:面向对象程序设计(C++/Java)

时间:2024-04-08 08:01:48

Copyright © 2022 津ICP备2021001502号