c++ - C++ 多重继承的真实例子是什么?

标签 c++ design-patterns inheritance multiple-inheritance

除了教科书示例——在现实世界中——在 C++ 中使用多重继承(其中多个基类不是纯接口(interface))是否有意义?

最佳答案

在使用 Policy-based design 时很常见,例如。

关于c++ - C++ 多重继承的真实例子是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2316148/

相关文章:

c# - 使用 yield 返回处理 Enumerable 对象的正确模式是什么?

java - 扩展 Java 类并强制现有库使用扩展类

Java继承概念与不明确的参数

c++ - char 数组的析构函数错误

c++ - python 中等效的 C++ 嵌套打印

c++ - 是否可以仅使用过滤器处理程序来扩展 Windows 搜索索引?

c++ - 大整数类的位操作?

java - Spring MVC 和安全性 - 授权期间 protected 资源的识别

PHP fatal error : Interface not found, 使用带命名空间的工厂模式

c# - 为基类的每个 child 创建一个静态变量并获取它