Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(C++) 1).Use UML notations to describe the following classes and their relationships. Define relevant private data, and the public methods for each class. a) Define

(C++) 1).Use UML notations to describe the following classes and their relationships. Define relevant private data, and the public methods for each class.

a) Define an ADT person that describes a general person.

b) Define a derived class from person that describes a typical student.

c) Define a derived class from person that describes a typical employee.

d) Derive from employee two special classes: councilor and instructor.

e) Derive from both student and employee; define a class partTimeWorkStudent who is a student and also a part time employee at the college

2).Use C++ to implement your definitions in above question for the classes person, student, employee, councilor, instructor, and test them with a main() program.

a) .h header file that defines all the classes in question.

b) .cpp file that implements all the classes in question.

c) .cpp driver program with a main() function that uses and tests these classes.

d) Effectively use the following C++ features for implementing class relationships:

ADT

Polymorphism

Class Inheritances

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions