#include <iostream>
#include <string>
using namespace std;
class Teacher
{
public:
Teacher()
{
m_strName = "Lily";
cout <<" Teacher()" << endl;
}
Teacher(int _age = 60)
{
m_iAge = _age;
cout <<" Teacher(int _age = 60)" << endl;
}
void setName(string _name)
{
m_strName = _name;
}
string getName()
{
return m_strName;
}
void setAge(int _age)
{
m_iAge = _age;
}
int getAge()
{
return m_iAge;
}
private :
string m_strName;
int m_iAge;
};
int main(void)
{
Teacher t1;
Teacher t2(50);
//cout << droL.getName() << endl;
system("pause");
}