编写一个抽象类Shape,在此基础上派生出类Rectangle和Circle

请编写一个抽象类Shape,在此基础上派生出类Rectangle和Circle,两者都有计算对象面积的函数getArea()、计算对象周长的函数getPerim()ios #include <iostream> #include <cmath> using namespace std; class Shape { public: Shape(){} ~Sh
相关文章
相关标签/搜索