Class Tutor
java.lang.Object
Tutor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStudent(Student s)
Adds a new students to a teacher's existing list of studentsReturns an ArrayList of all the tutor's students
-
Field Details
-
myName
-
students
-
-
Constructor Details
-
Tutor
Sets the tutor's name to the parameter passed in- Parameters:
name
- name of tutor
-
-
Method Details
-
addStudent
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
Returns an ArrayList of all the tutor's students- Returns:
- Student array list with all the tutor's students
-