![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
第六章
bing0528
这个作者很懒,什么都没留下…
展开
-
第4题
#include using namespace std; class Shape {public: virtual double area() const =0; }; class Circle:public Shape {public: Circle(double r):radius(r){}原创 2015-06-09 19:15:18 · 252 阅读 · 0 评论 -
第3题
#include using namespace std; class Point {public: Point(float a,float b):x(a),y(b){} ~Point(){cout<<"executing Point destructor"<<endl;} private: float x; float y; }; class Circ原创 2015-06-09 18:57:05 · 254 阅读 · 0 评论 -
第5题
#include using namespace std; class Shape {public: virtual double area() const =0; }; class Circle:public Shape {public: Circle(double r):radius(r){}原创 2015-06-09 20:15:50 · 248 阅读 · 0 评论