摘要:
#include <iostream> using namespace std; class Shape { protected: int width; int height; string name; public: // pure virtial function for interface v 阅读全文
posted @ 2023-01-08 16:10
johnny_zhao
阅读(38)
评论(0)
推荐(0)
摘要:
virtual在类中使用 如在多继承中(环状继承): class D{......}; class B: public D{......}; class A: public D{......}; class C: public B, public A{.....}; 这个继承会使D创建两个对象,要解 阅读全文
posted @ 2023-01-08 13:27
johnny_zhao
阅读(91)
评论(0)
推荐(0)

浙公网安备 33010602011771号