class jianli2:public jianli
时间: 2023-10-24 11:04:57 浏览: 106
jianli模板(简历大全).txt
{
public:
jianli2(const string& name, int age, const string& school, const string& major, const string& education)
:jianli(name, age, school, major), m_education(education)
{
}
virtual void display() const
{
cout << "姓名:" << m_name << endl;
cout << "年龄:" << m_age << endl;
cout << "学校:" << m_school << endl;
cout << "专业:" << m_major << endl;
cout << "学历:" << m_education << endl;
}
private:
string m_education;
};
阅读全文