Example #1
0
 static void Main(string[] args)
 {
     string[] atts = { "Sophie", "Greene", "1/12/1991", "30 Some Street", "", "Leeds", "West Yorkshire", "ZE7 3AE", "UK","Student" };
     string[] att = { "Manual", "Zu", "1/12/1937", "30 Other Street", "", "Sheffield", "West Yorkshire", "LE7 9MN", "UK","Teacher" };
     Person student = new Person(atts);
     student.print();
     Person teacher = new Person(att);
     teacher.print();
     //ensure console window stays open
     string[] pAtt = {"Intro to Computer Science","Some Guy","BSc. blah blah" };
     UProgram prog = new UProgram(pAtt);
     prog.print();
     Degree deg = new Degree("Bsc. A M", 72);
     deg.print();
     Course cour = new Course("Intro hbla", 3, 9, "Mr blah Person");
     cour.print();
     Console.Read();
 }
Example #2
0
        static void Main(string[] args)
        {
            string[] atts    = { "Sophie", "Greene", "1/12/1991", "30 Some Street", "", "Leeds", "West Yorkshire", "ZE7 3AE", "UK", "Student" };
            string[] att     = { "Manual", "Zu", "1/12/1937", "30 Other Street", "", "Sheffield", "West Yorkshire", "LE7 9MN", "UK", "Teacher" };
            Person   student = new Person(atts);

            student.print();
            Person teacher = new Person(att);

            teacher.print();
            //ensure console window stays open
            string[] pAtt = { "Intro to Computer Science", "Some Guy", "BSc. blah blah" };
            UProgram prog = new UProgram(pAtt);

            prog.print();
            Degree deg = new Degree("Bsc. A M", 72);

            deg.print();
            Course cour = new Course("Intro hbla", 3, 9, "Mr blah Person");

            cour.print();
            Console.Read();
        }