Do it in C++
(The Person, Student, Employee, Faculty, and Staff classes) Design a classnamed Person and its two derived classes named Student and Employee. MakeFaculty and Staff derived classes of Employee. A person has a name, address,phone number, and e-mail address. A student has a class status (freshman,sophomore, junior, or senior). An employee has an office, salary, and date-hired.Define a class named MyDate that contains the field year, month, and day. Afaculty member has office hours and a rank. A staff member has a title. Define aconstant virtual toString function in the Person class and override it in each classto display the class name and the person’s name.Draw the UML diagram for the classes. Implement the classes. Write a test programthat creates a Person, Student, Employee, Faculty, and Staff, and invokes theirtoString() functions.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here