Person Hierarchy
Person Hierarchy
Person Hierarchy
* @author Mohammed,
*/
public class BirthDate {
public Person(){
}
public Person(String name, int id, int day, int month, int year){
this.name = name;
this.id = id;
this.Bdate = new BirthDate(day,month,year);
}
public Employee() {
}
public Manager(String name, int id, BirthDate Bdate, double salary, int raise) {
super(name, id, Bdate, salary);
this.raise = raise;
}
public Student(String name, int id, BirthDate Bdate, double average, String major) {
super(name, id, Bdate);
this.average = average;
this.major = major;
}
public Student() {
}