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 { public abstract class Person {
private String firstName; protected String firstName;
private String lastName; protected String lastName;
private String id; protected String id;
private int joiningYear; protected int joiningYear;
private Department department; protected Department department;
public String getFullName() { public String getFullName() {
return firstName + " " + lastName; 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