derived class 派生类 ; 衍生类别 ; 定义一个派生类
most derived class 最末层衍生类别 ; 最底层的派生类
protected derived class 保护派生类
public derived class 公有派生类 ; 公用派生类
derived class object 派生类对象
private derived class 派生类称为私有派生类
derived class layout 导出类的布局
for derived class 为派生类的 ; 派生类的
of derived class 派生类的
A derived-class member with the same name as a member of the base class hides direct access to the base-class member.
当派生类的成员和基类成员名字相同时,派生类的成员屏蔽了对基类此成员的直接访问。
If the base member took different arguments than the derived-class member, there would be no way to call the derived function from a reference or pointer to the base type.
如果基类成员与派生类成员接受的实参不同,就没有办法通过基类类型的引用或指针调用派生类函数。
Setting them again for each derived class is a waste, since they would be available anyway by inheritance.
为每个派生类再次设置这些属性是一种浪费,因为通过继承它们就会拥有这些属性。
应用推荐