摘要: class Person { public: virtual void bellRing() {} virtual ~Person(){} }; class Student:public Person { public: void bellRing(){ cout << "I am a studen 阅读全文
posted @ 2023-04-23 18:07 yblll 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream> #include <string> using namespace std; class Vehicle { protected: string NO;//编号 public: Vehicle(string n){ NO = n; } virtual int f 阅读全文
posted @ 2023-04-23 18:05 yblll 阅读(7) 评论(0) 推荐(0)