Class inheritance and derived 说明类的继承与派生的几道练习题
Since both the base class and derived class have the same interface, there must be some implementation to go along with that interface.
因为基类和衍生类拥有相同的接口,因此这个接口必须要有必要的实现。
This derived class is also an Authority Service implementation that directs data and meta data requests to itself.
这个衍生而来的类同时也是一个可以把数据和元数据请求定向到自身的中心服务实现。
The size of a derived class is the size of the base class plus the additional members defined by a derived instance (and any extra space required for alignment, as discussed earlier).
派生类的大小等于基类加上派生实例定义的其他成员(以及对齐所必需的任何额外空间 — 如前所述)的大小。
应用推荐