Question: c++ The following diagram Illustrates the classes you will implement in this lab and their relationships. myDate Public Private - day Type: int (-) month

The following diagram Illustrates the classes you will implement in this lab and their relationships. myDate Public Private - day Type: int (-) month Type: int (+) year Type: ant (+) Parameterized Constructor (+) Setters (+) print Details void Private protected Employee (-) Name Type: string 1-) Nationality Type: string (-) experienceYears Type: int (#), HiringDate Type: my Date (+) hearameterized Constructor that takes 2 strings, 1 integer and myDate object (+) Getter for the name (+) Print Details Void Public Secretary Manager Nori HOUL SEE int Ayeung Melted Type Song SEND YRES ROOL Harired Construction Data EVOLG DESSE 13 FEST NOTE 1: In alle Noce cannot be frictions that do not modify the disconti NOTE 2 th NOTE 1: In all of your code, do not forget to make all functions that do not modify the dass constant NOTE 2: Do not put all of your code in one file; separate implementation from the Interface. NOTE 3: Avoid duplication of codel If something is already done in the base class, do not do it again in the derived class. I QUESTION 1: Implement class myDate as described in the UML diagram. Don't forget to validate the data members. The year should be between 1900 and now. QUESTION 2: Implement class Employee as described in the UML diagram. Notice that unlike all its data members, HiringDate is protected and not private in this class. Function printDetails should print information about the employee in a well-formatted manner
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
