摘要: 1 #include<iostream> 2 using namespace std; 3 class Shape 4 { 5 public: 6 Shape(){} 7 ~Shape(){} 8 virtual float getArea() {} 9 }; 10 class Circle:pub 阅读全文
posted @ 2023-05-10 18:45 Code13 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 class BaseClass 4 { 5 public: 6 virtual void fn1(); 7 void fn2 (); 8 }; 9 void BaseClass::fn1() 10 { 11 阅读全文
posted @ 2023-05-10 18:44 Code13 阅读(34) 评论(0) 推荐(0) 编辑