摘要: #include #include using namespace std; class Shape { public: virtual void draw()=0; virtual ~Shape(){} }; class Rectangle :public Shape { public: void draw() { cout cre... 阅读全文
posted @ 2019-06-28 17:00 方豆 阅读(314) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; class Shape { public: virtual void draw()=0; }; class Rectangle:public Shape { public: void draw() { cout getShape(1); Shape* a2 = fac->get... 阅读全文
posted @ 2019-06-28 16:59 方豆 阅读(180) 评论(0) 推荐(0) 编辑