data-structures/java/Dictionary/Payroll.java

19 lines
439 B
Java
Raw Permalink Normal View History

2022-09-15 13:14:24 +00:00
/** A simple payroll entry with ID, name, address fields */
class Payroll {
private Integer ID;
private String name;
private String address;
/** Constructor */
Payroll(int inID, String inname, String inaddr) {
id = inID;
name = inname;
address = inaddr;
}
/** Data member access functions */
public Integer getID() { return ID; }
public String getname() { return name; }
public String getaddr() { return address; }
}