-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathManager.java
More file actions
22 lines (17 loc) · 735 Bytes
/
Copy pathManager.java
File metadata and controls
22 lines (17 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package application;
public class Manager extends Human{
private int Years_Of_Experience;
private double Salary;
public Manager(String first_Name,String last_Name,String age,String address,String ID_no,int Years_Of_Experience,double Salary) {
super(first_Name,last_Name,age,address,ID_no);
}
@Override
public void contents_display() {
System.out.println("Name : "+ this.first_Name+ " "+this.last_Name);
System.out.println("Age : "+this.age);
System.out.println("Address : "+ this.address);
System.out.println("ID_no : "+ this.ID_no);
System.out.println("Salary : "+ this.Salary);
System.out.println("Years_Of_Experience : "+ this.Years_Of_Experience);
}
}