Question: package ex 1 employee; / * * * * @author athee * / public class Ex 1 Employee { private String name; private int idNumber;
package exemployee;
@author athee
public class ExEmployee
private String name;
private int idNumber;
private String department;
private String position;
public ExEmployeeString name, int idNumber, String department, String position
this.name name;
this.idNumber idNumber;
this.department department;
this.position position;
public ExEmployeeString name, int idNumber
this.name name;
this.idNumber idNumber;
this.department ;
this.position ;
public ExEmployee
this.name ;
this.idNumber ;
this.department ;
this.position ;
public void setNameString name
this.name name;
public void setIdNumberint idNumber
this.idNumber idNumber;
public void setDepartmentString department
this.department department;
public void setPositionString position
this.position position;
public String getName
return name;
public int getIdNumber
return idNumber;
public String getDepartment
return department;
public String getPosition
return position;
package employeeclasstest;
@author athee
public class EmployeeClassTest
public static void mainString args
ExEmployee employee new ExEmployeeSusan Meyers", "Accounting", "Vice President";
ExEmployee employee new ExEmployeeMark Jones", IT "Programmer";
ExEmployee employee new ExEmployeeJoy Rogers", "Manufacturing", "Engineer";
System.out.printlnEmployee :;
System.out.printlnName: employeegetName;
System.out.printlnID Number: employeegetIdNumber;
System.out.printlnDepartment: employeegetDepartment;
System.out.printlnPosition: employeegetPosition;
System.out.println
Employee :;
System.out.printlnName: employeegetName;
System.out.printlnID Number: employeegetIdNumber;
System.out.printlnDepartment: employeegetDepartment;
System.out.printlnPosition: employeegetPosition;
System.out.println
Employee :;
System.out.printlnName: employeegetName;
System.out.printlnID Number: employeegetIdNumber;
System.out.printlnDepartment: employeegetDepartment;
System.out.printlnPosition: employeegetPosition;
why are these codes are not working together
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
