会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
一叶扁舟
2019.08.23 慢慢积累,总会变强大的 2024.07.09 温故而知新 可以为师矣
博客园
首页
新随笔
联系
管理
2023年7月19日
C++ 虚基类
摘要: 虚基类(Virtual Base Class)在面向对象编程中的作用是解决多重继承中的菱形继承问题(Diamond Inheritance Problem)和共享基类问题(Shared Base Class Problem)。 菱形继承问题是指当一个类以多种路径继承自同一个基类时,会导致该基类在派生
阅读全文
posted @ 2023-07-19 11:01 strive-sun
阅读(187)
评论(0)
推荐(0)
编辑
公告