Files
004_comission/_resources/it114105/itp3914/Lab12/Ex5/Employee5.java
louiscklaw 6c60a73f30 update,
2025-01-31 19:15:17 +08:00

22 lines
533 B
Java

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;
}
}