摘要:
#include<iostream>using namespace std;class Animal{ public: int a,b; virtual void speak() { cout<<"My name is Animal."<<endl; }};class Cat:public Anim 阅读全文
posted @ 2023-04-22 21:46
不会JAVA的小袁
阅读(12)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;class People{ protected: int age; string name; public: People(){}; People(int a,string n){ age=a; name=n; } ~Peo 阅读全文
posted @ 2023-04-22 21:37
不会JAVA的小袁
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号