public void addTeacher(Teacher t) { if (teacherArr.Length < 4) { int currentCount = Student.countStudents(); teacherArr[currentCount - 1] = t; } }
public void addStudent(Student s) { if (studentArr.Length < 4) { int currentCount = Student.countStudents(); studentArr[currentCount - 1] = s; } }
public int countStudents() { return(Student.countStudents()); }