Class Tutor


public class Tutor extends Object
  • Field Details

  • Constructor Details

    • Tutor

      public Tutor(String name)
      Sets the tutor's name to the parameter passed in
      Parameters:
      name - name of tutor
  • Method Details

    • addStudent

      public void addStudent(Student s)
      Adds a new students to a teacher's existing list of students
      Parameters:
      s - a Student object that represents a student to be added
    • getStudents

      public ArrayList<Student> getStudents()
      Returns an ArrayList of all the tutor's students
      Returns:
      Student array list with all the tutor's students