Commit 8775dffe authored by 9731065's avatar 9731065

Statement made

and base of Employee
parent 331bb285
public abstract class Employee extends Person {
}
public class Person {
private String firstName;
private String lastName;
private String id;
private int joiningYear;
private Department department;
public abstract class Person {
protected String firstName;
protected String lastName;
protected String id;
protected int joiningYear;
protected Department department;
public String getFullName() {
return firstName + " " + lastName;
......
public class Statement {
private double amount;
private Employee reciever;
public Statement(int amount , Employee reciever){
this.amount = amount;
this.reciever = reciever;
}
public double getAmount() {
return amount;
}
public Employee getReciever() {
return reciever;
}
}
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