单项选择题

设类Derived是类Base的一个子类,则Derived中()。

A.只有Base 的属性
B.只有Base 的方法
C.除Base 中的属性和方法外,只能添加Base 中没有的新方法
D.除Base 中的属性和方法外,还可以添加新属性和新方法