update,
This commit is contained in:
21
_resources/it114105/itp3914/Lab12/Ex5/Employee5.java
Normal file
21
_resources/it114105/itp3914/Lab12/Ex5/Employee5.java
Normal file
@@ -0,0 +1,21 @@
|
||||
public class Employee5 {
|
||||
String name;
|
||||
int employeeID;
|
||||
protected int salary;
|
||||
|
||||
public Employee5(String name, int employeeID) {
|
||||
this.name = name;
|
||||
this.employeeID = employeeID;
|
||||
}
|
||||
|
||||
public Employee5(String name, int employeeID, int salary) {
|
||||
this.name = name;
|
||||
this.employeeID = employeeID;
|
||||
this.salary = salary;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "Name: " + name + ", Employee ID: "
|
||||
+ employeeID + ", Salary: " + salary;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user