コード例 #1
0
        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();
        }