Top
Previous Next
Java Arrays, Objects, Methods CS 161 - Java

Minimal Employee class

The following is a minimal Employee class that you may use to do this week's assignment to write a Boss class. This does not fulfill all the requirements of last week's assignment
Source: examples/Employee1.java



/** A minimal Employee class to support doing the homework that
** requires you to write a Department class.
**/
public class Employee1 {
 
private String empName;
private String empId;
 
public Employee1(String name, String id) {
empName = name;
empId = id;
}
 
public String getName() {
return empName;
}
}


Top
Previous Next
jwd