Question: Buej Code: Create a class Employee, as shown in UML diagram given below: Employee -name: String -Id: int -department: String -position: String +Employee() +Employee(name: String,
Buej Code:

Create a class Employee, as shown in UML diagram given below: Employee -name: String -Id: int -department: String -position: String +Employee() +Employee(name: String, id int, department String, position: String) +getName(): String +setName(name: String): void +geld(); int +setId(id: int) : void +getDepartment(): String +setDepartment(department String); void +getPosition(): String +setPosition(position: String) void Once you finish creating this class, create a separate program that creates 2 Employee objects to hold your data in first object and your friend's data in second object. Then display data for each Employee Object on the screen. Requirements: Use appropriate Comments where required, Constructors, Accessor and Mutator methods, Testing class code and attach output screenshot. [Note:- You can add any method if you want, but you cannot remove anything.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
