class person
{
private:
string name;
string sex;
int age;
public:
//省略函数
};
class Student:public person
{
private:
string major;
int index;
public:
//省略函数
};
class Teacher:public person
{
private:
string subject;
string perfessional_title ;
public:
//省略函数
};