Create a class that represents an employee. This class will have three constructors to initialize variables. If the constructor doesn't provide a parameter for a field , make it either "(not set)" or "0" as appropriate.
Name:
Employee
Fields :
- name : String
- idNumber : Int
- department : String
- position : String
Methods:
+ Employee()
+ Employee(name : String, idNumber : int)
+ Employee(name : String, idNumber : int, department : String, position : String)
+ getName() : String
+ getDepartment() : String
+ getPosition() : String
+ getIdNumber() : int
Write in java and use test case #1 as an example.
Extracted text: Test Case 1 (not set), 0, (not set), (not set) n Bill Gates, 1975, (not set), (not set) n Steve Jobs, 1976, Design, Engineer \n