赞题库-背景图
单项选择题

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

A、类Person是类Undergraduate的基类

B、类Undergraduate从类Student公有继承

C、类Student是类Person的派生类

D、类Undergraduate是类Person的派生类