Commit 24a3fd88 authored by 9731050's avatar 9731050

first commit

parent 7096d72e
import java.util.ArrayList;
public class Employee extends Person {
protected ArrayList<Statement> bankStatement;
protected String position;
protected double basicIncome;
public Employee(String firstName, String lastName, String ID, int joiningYear, Department department,String position,double basicIncome) {
super(firstName, lastName, ID, joiningYear, department);
this.position=position;
bankStatement=new ArrayList<Statement>();
this.basicIncome=basicIncome;
}
public ArrayList<Statement> getBankStatement() {
return bankStatement;
}
public void addBankstatement(Statement statement){
bankStatement.add(statement);
}
public String getPosition() {
return position;
}
public void setBasicIncome(double income){
basicIncome=income;
}
}
public class GradStudent {
}
import java.util.ArrayList;
public class Student extends Person {
ArrayList<Course>courses;
public Student(String firstName, String lastName, String ID, int joiningYear, Department department) {
super(firstName, lastName, ID, joiningYear, department);
courses=new ArrayList<>();
}
public ArrayList<Course> getCourses() {
return courses;
}
public void addCourse(Course c){
courses.add(c);
}
}
public class UnderGradStudent extends Student {
public UnderGradStudent(String firstName, String lastName, String ID, int joiningYear, Department department) {
super(firstName, lastName, ID, joiningYear, department);
}
}
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