Question: Please need help asap with this one Exercise 2: A. Create two classes according to the given UML diagram: Employee -name: String -heirDate: Date -salary:

 Please need help asap with this one Exercise 2: A. Create

two classes according to the given UML diagram: Employee -name: String -heirDate:

Please need help asap with this one

Exercise 2: A. Create two classes according to the given UML diagram: Employee -name: String -heirDate: Date -salary: double +Employee(String, Date, double) +getName(): String +getHeirDate(): Date +getSalary(): double +setName(String): void +setHeirDate(Date): void +setSalary(double): void Date -day: int -month: int -year: int +Date(int, int, int) +getDay): int +getMonth(): int +getYear(): int +setDay(int): void +setMonth(int): void +setYear(int): void 1. Implement the two classes given in the UML diagram. 2. Add a static member numberOfEmployees to the class Employee to keep track of the number of 3. 4. 5. Employees created and increment it in each constructor of the class Employee Add a copy constructor to the Employee class. Add a toString0 method to each class Complete the Employee class by adding the method increaseSalary0 that increases the salary of an Employee by an amount x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!