(这也那是为什么你从一个的 private base class(私有基类)继承的每一件物品都在你的 class(类)中变成 private(私有)的理由:它全部都是出现的细节。
基于54个网页-相关网页
将基类标记为 “私有” 允许派生类从该基类继承而来,而无需实际成为 一个基类。
Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.
客户类可以是用于许多不同客户类型的抽象基类,比如说私有客户或业务客户。
The customer class can be an abstract base class for a family of different customer types, such as private or business customer.
基类中的私有成员被继承,但不能从派生类访问。
Private members in base classes are inherited but are not accessible from derived classes.
应用推荐