Employee.java - package employee public class Employee private private private private String name int idNumber String department String position public

Employee.java - package employee public class Employee...

This preview shows page 1 - 2 out of 2 pages.

package employee; public class Employee { private String name; private int idNumber; private String department; private String position; public Employee ( String employeeName, int employeeIdNumber, String employeeDepartment, String employeePosition ){ name = employeeName; idNumber = employeeIdNumber; department = employeeDepartment; position = employeePosition; } public void setName( String nameGiven ){ name = nameGiven; } public void setIdNumber( int idNumberGiven ){ idNumber = idNumberGiven ; } public void setIdNumber( String idNumberGiven ){ idNumber = Integer.parseInt( idNumberGiven ); } public void setDepartment( String departmentGiven ){
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • Fall '19
  • Return statement, Void type, public Employee, public void setName, String department, public class Employee

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes