예제 #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();
 }
예제 #2
0
파일: Program.cs 프로젝트: Knoz/Learning
		static void Main()
		{
			Student nelson = new Student("nelson");

			Student gavin = new Student("gavin");

			Student jason = new Student("jason");

			Course introToCs = new Course("Intro to C#");

			Course introToCpp = new Course("Intro to C++");

			introToCs.AddStudent(nelson);
			introToCs.AddStudent(gavin);
			introToCs.AddStudent(jason);

			introToCpp.AddStudent(nelson);
			introToCpp.Display();
			introToCs.Display();

			Console.ReadKey();
		}