Exemplo n.º 1
0
		static void Main()
		{
			// Even with empty constructors so defined class functionalitites can be tested
			var newSchoolClass = new SchoolClass();
			Console.WriteLine(newSchoolClass);

			var newStudent = new Student();
			Console.WriteLine(newStudent);

			var newTeacher = new Teacher();
			Console.WriteLine(newTeacher);
		}
Exemplo n.º 2
0
        static void Main()
        {
            // Even with empty constructors so defined class functionalitites can be tested
            var newSchoolClass = new SchoolClass();

            Console.WriteLine(newSchoolClass);

            var newStudent = new Student();

            Console.WriteLine(newStudent);

            var newTeacher = new Teacher();

            Console.WriteLine(newTeacher);
        }
Exemplo n.º 3
0
 public void RemoveClass(SchoolClass x)
 {
     this.schoolClasses.Remove(x);
 }
Exemplo n.º 4
0
 public void AddClass(SchoolClass x)
 {
     this.schoolClasses.Add(x);
 }