I need to create a UML diagram from this question

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 34SA
icon
Related questions
Question

I need to create a UML diagram from this question

(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two
subclasses named Student and Employee. Make Faculty and Staff subclasses 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). Define the status as a constant. An employee has an office, salary, and
date hired. Use the MyDate class defined in Programming Exercise 10.14 – see the textbook - to create
an object for date hired. A faculty member has office hours and a rank. A staff member has a title.
Override the toString method in each class to display the class name and the person's name. Draw
the UML diagram for the classes and implement them. Write a test program that creates a Person,
Student, Employee, Faculty, and Staff, and invokes their toString() methods.
Transcribed Image Text:(The Person, Student, Employee, Faculty, and Staff classes) Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasses 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). Define the status as a constant. An employee has an office, salary, and date hired. Use the MyDate class defined in Programming Exercise 10.14 – see the textbook - to create an object for date hired. A faculty member has office hours and a rank. A staff member has a title. Override the toString method in each class to display the class name and the person's name. Draw the UML diagram for the classes and implement them. Write a test program that creates a Person, Student, Employee, Faculty, and Staff, and invokes their toString() methods.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Requirement Analysis
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning