摘要:
#include #include using namespace std; class Shape { public: virtual void draw()=0; virtual ~Shape(){} }; class Rectangle :public Shape { public: void draw() { cout cre... 阅读全文
摘要:
#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... 阅读全文