C++箴言:接口继承和实现继承
2009-03-12 13:20
218 查看
Things to Remember
·Inheritance of interface(接口继承)与 inheritance of implementation(实现继承)不同。在 public inheritance(公开继承)下,derived classes(派生类)总是继承 base class interfaces(基类接口)。
·Pure virtual functions(纯虚拟函数)指定 inheritance of interface only(仅有接口被继承)。
·Simple (impure) virtual functions(简单虚拟函数)指定 inheritance of interface(接口继承)加上 inheritance of a default implementation(缺省实现继承)。
·Non-virtual functions(非虚拟函数)指定 inheritance of interface(接口继承)加上 inheritance of a mandatory implementation(强制实现继承)。
本文章转载自『
相关文章推荐
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++箴言:接口继承和实现继承
- C++ 中的接口继承与实现继承
- effective C++ 条款 34:区分接口继承和实现继承
- 读书笔记 effective c++ Item 34 区分接口继承和实现继承
- C++利用纯虚函数和虚函数实现接口继承和实现继承
- c++接口继承与实现继承
- effecive C++之接口继承和实现继承
- C++接口继承与实现继承的区别和选择
- 明明白白c++ 继承 接口继承和实现继承
- C++:接口继承和实现继承
- C++中的接口继承和实现继承
- [C++]接口继承与实现继承
- C++之区分接口继承和实现继承(34)---《Effective C++》