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); }
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); }
public void RemoveClass(SchoolClass x) { this.schoolClasses.Remove(x); }
public void AddClass(SchoolClass x) { this.schoolClasses.Add(x); }