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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago