/Users/19826/Downloads/IA - Brian/src/ia/brian/Tutor.java |
1 package ia.brian;
2
3
4
5
6
7
8
9
10
11 @author
12
13 public class Tutor extends Student{
14 private String[] tutorType = new String[4];
15
16 public Tutor(){
17
18 }
19
20 public Tutor(String name, String ID, int grade, String gender, String tutorOrTutee, String[] subjects, TimeTable[] timeTable, String specialNotes, String[] tutorType){
21 super(name, ID, grade, gender, tutorOrTutee, subjects, timeTable, specialNotes);
22 this.tutorType = tutorType;
23 }
24 public Tutor(String name, String ID, int grade, String gender, String tutorOrTutee, String[] subjects, TimeTable[] timeTable, String specialNotes, boolean isCurrentlyAvailable, String[] tutorType){
25 super(name, ID, grade, gender, tutorOrTutee, subjects, timeTable, specialNotes, isCurrentlyAvailable);
26 this.tutorType = tutorType;
27 }
28 public Tutor(String name, String ID, int grade, String[] subjects, String[] tutorType, TimeTable[] timeTable, boolean isCurrentlyAvailable){
29 super(name, ID, grade, subjects, timeTable, isCurrentlyAvailable);
30 this.tutorType = tutorType;
31 }
32
33 public Tutor(String name, String[] subjects, TimeTable[] timeTable){
34 super(name, subjects, timeTable);
35 }
36 public String[] getTutorType(){
37 return tutorType;
38 }
39
40 public void setTutorType(){
41 this.tutorType = tutorType;
42
43 }
44
45 public void printTutorType() {
46 System.out.println("");
47 for(int i = 0; i <tutorType.length; i++){
48 System.out.print(tutorType[i] + ", ");
49 }
50 }
51
52 public String ToStringTutorType() {
53 return tutorType[0] + ", " + tutorType[1] + ", " + tutorType[2] + ", " + tutorType[3];
54 }
55
56 }
57