摘要:
#include<iostream>using namespace std;class Base0{ public: int var0; void fun0(){ cout<<"Member of Base0"<<endl; }};class Base1:public Base0{ public: 阅读全文
posted @ 2023-04-12 21:54
不会JAVA的小袁
阅读(15)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;class Base1{ public: int var; void fun() { cout<<"Membber of Base1"<<endl; } };class Base2{ public: int var; voi 阅读全文
posted @ 2023-04-12 21:43
不会JAVA的小袁
阅读(14)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;class Base1{ public: Base1(int i){ cout<<"Constructing Base1"<<i<<endl; } Base1(){ cout<<"Constructing Base1"<<e 阅读全文
posted @ 2023-04-12 21:26
不会JAVA的小袁
阅读(17)
评论(0)
推荐(0)
摘要:
#include<iostream>using namespace std;class Base1{ public: Base1(int i){ cout<<"Constructing Base1"<<i<<endl; }};class Base2{ public: Base2(int j){ co 阅读全文
posted @ 2023-04-12 21:15
不会JAVA的小袁
阅读(17)
评论(0)
推荐(0)