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() ; }