深度探索C++對象模型(15)——數據語義學(5)——虛基類初探

引入虛基類前: 代碼: #include <iostream> #include <stdio.h> using namespace std; class Grand //爺爺類 { public: int m_grand; }; class A1 : public Grand { public: int m_a1; }; class A2 : public Grand { public
相關文章
相關標籤/搜索