Commit 3c54e18a authored by 9731050's avatar 9731050

third

parent cc69f804
package org.university.core;
import java.util.ArrayList;
public class Professor extends Employee{
private ArrayList<Course>courses;
private String group;
public Professor(String firstName, String lastName, String ID, int joiningYear, Department department, String position, double basicIncome,String group) {
super(firstName, lastName, ID, joiningYear, department, position, basicIncome);
courses=new ArrayList<>();
this.group=group;
}
public ArrayList<Course> getCourses() {
return courses;
}
public String getGroup() {
return group;
}
public void addCourse(Course c){
courses.add(c);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment