編寫一個抽象類Shape,在此基礎上派生出類Rectangle和Circle

請編寫一個抽象類Shape,在此基礎上派生出類Rectangle和Circle,兩者都有計算對象面積的函數getArea()、計算對象周長的函數getPerim()ios #include <iostream> #include <cmath> using namespace std; class Shape { public: Shape(){} ~Sh
相關文章
相關標籤/搜索