摘要: 1 #include<iostream> 2 using namespace std; 3 class Shape 4 { 5 public: 6 Shape(){} 7 ~Shape(){} 8 virtual float getArea()=0; 9 virtual float getPerim 阅读全文
posted @ 2023-05-08 22:23 Code13 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 class Mammal 4 { 5 public: 6 Mammal() 7 { 8 cout<<"Mammal constructor...\n"; 9 } 10 ~Mammal() 11 { 12 co 阅读全文
posted @ 2023-05-08 22:22 Code13 阅读(82) 评论(0) 推荐(0) 编辑