单选题 C++
题号 #2607031

下列代码段中声明了3个类:
Class Person{};
Class Student:publiC Person{};
Class Undergraduate:Student{};
下列关于这些类之间关系的描述中,错误的是(    )。

进入在线模考

参考答案

B

答案解析

本题考查基类和派生类的逻辑关系,属于基础知汉,如果没有指明哪种继承方式,那么默认为私有继承,所以B选项错误。

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考