Class DateThis composition Lab contains classes Date, and Employee. Class Date declares private variablesmonth
Good evening, I was wondering if you could help me out with this setup for C++
ATTACHMENT PREVIEW Download attachmentClass DateThis composition Lab contains classes Date, and Employee. Class Date declares private variablesmonth, day and year to represent a date. The constructor receives three int parameters.Themethod checkMonth uses to validate the month—if the value is out-of-range. The methodcheckDay is to validate the day based on the current month and year. Determines whether theday is correct based on the number of days in the particular month. If the day is not correct.Class EmployeeClass Employee has private variables firstName, lastName, birthDate and hire-Date. TheMembers firstName and lastName are String. Members birthDate and hireDate are references toDate objects. This demonstrates that a class can have as instance variables references to objectsof other classes (Composition). The Employee constructor takes four parameters—first, last,dateOfBirth and dateOf-Hire.The objects referenced by the parameters are assigned to the Employee object’s private variables.Main functionCreates two Employee objects and initializes the data members by passing to the constructor and(first and last names) and (the birthday and hire date).Display the values of its private variables and demonstrate that the object was initializedproperly.

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
