#include <iostream>
using namespace std;
class teacher
{
public:
teacher(){}
teacher(int a,string s):age(a),job(s){}
void show()
{
cout<<age<<'\t'<<job<<endl;
}
protected:
int age;
string job;
};
class student
{
public:
student(){}
student(string n,int a,int s):name(n),age(a),score(s){}
void show()
{
cout<<name<<'\t'<<age<<'\t'<<score<<endl;
}
protected:
string name;
int age;
int score;
};
class Graduate:public student,public teacher
{
public:
Graduate(){}
Graduate(int b,string s,string n,int a,string l):teacher(b,s),student(n,b,a),sex(l){}
void show()
{
cout<<name<<'\t'<<teacher::age<<'\t'<<sex<<'\t'<<job<<'\t'<<score<<endl;
}
private:
string sex;
};
int main()
{
Graduate g1(18,"doctor","zhangsan",100,"m");
g1.show();
cout << "Hello World!" << endl;
return 0;
}