示例#1
0
文件: oop2.cs 项目: puji858/oop2
        static void main(string[] args)
        {
            person person = new person("mike", 20);

            person.GetNameAndAge();

            Teacher teacher = new Teacher("thomas", 35, "190302", "math");

            teacher.GetNameAndAge();

            student student = new student("sara", 19, "10506", "*****@*****.**");

            student.GetNameAndAge();

            console.readkey()
            ;
        }