摘要: 虚基类(Virtual Base Class)在面向对象编程中的作用是解决多重继承中的菱形继承问题(Diamond Inheritance Problem)和共享基类问题(Shared Base Class Problem)。 菱形继承问题是指当一个类以多种路径继承自同一个基类时,会导致该基类在派生 阅读全文
posted @ 2023-07-19 11:01 strive-sun 阅读(187) 评论(0) 推荐(0) 编辑