C++ 类的继承六(多继承的二义性--虚基类)
摘要:
//多继承的二义性--虚基类(了解为主) #include using namespace std; /* 多继承在现在的项目开发中一般不使用,他会增加项目的复杂度 */ class Point{ public: Point(){ x = 1; y = 1; } int x; int y; }; class PointA :v... 阅读全文
posted @ 2016-06-30 21:02 寒魔影 阅读(278) 评论(0) 推荐(0)
浙公网安备 33010602011771号