Exemplo n.º 1
0
Arquivo: oop2.cs Projeto: 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()
            ;
        }