package teacher1;
public class Teacher1 {
public class Teacher extends Faculty {
private String FirstCourse ;
private String SecondCourse ;
private String ThierdCourse ;
public Teacher ( String FC , String SC , String TC ,int salary , String fn , String ln , String id ,
String cs , String it ,String el ){
super(salary , fn , ln , id , cs , it , el);
this.FirstCourse = FC ;
this.SecondCourse =SC ;
this.ThierdCourse = TC ;
}
public void setFirstCourse(String FirstCourse) {
this.FirstCourse = FirstCourse;
}
public void setSecondCourse(String SecondCourse) {
this.SecondCourse = SecondCourse;
}
public void setThierdCourse(String ThierdCourse) {
this.ThierdCourse = ThierdCourse;
}
public String getFirstCourse() {
return FirstCourse;
}
public String getSecondCourse() {
return SecondCourse;
}
public String getThierdCourse() {
return ThierdCourse;
}
@Override
public String toString() {
return "Teacher{" + "FirstCourse=" + FirstCourse + ", SecondCourse=" + SecondCourse + ", ThierdCourse=" + ThierdCourse + '}';
}
public Teacher(String FirstCourse, String SecondCourse, String ThierdCourse) {
this.FirstCourse = FirstCourse;
this.SecondCourse = SecondCourse;
this.ThierdCourse = ThierdCourse;
}
You mean the theoretical or practical part? If so, I suggest a boolean or switched