Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Aim of this assignment is to train you how to design and implement classes that have an inheritance relationship between them. Carleton University has

The Aim of this assignment is to train you how to design and implement classes that have an inheritance relationship between them. Carleton University has several academic and administrative sections (departments). You are required to build a C++ application that implement this hierarchy according to the following requirements: 1- Build a base class (Department) and 2 derived classes. In the base class, you must define 3 shared data members (attributes) and 2 member functions. The derived classes must define their own data members and member functions. 2- The first method of the base class should accept a users inputs and second method should change the values that a user entered. 3- Each derived class should have a print method that prints its data members (i.e., inherited and its own). 4- Create one constructor for each class (i.e., 1 for the base class, and 1 for each derived class). You should provide different ways for writing the constructors (i.e., a one constructor uses initialization list, a second uses arguments, and a third constructor uses the assignment statements in the body of the constructor). 5- Write a main() function that performs the followings: A. Create one object from each class. B. The object of the base class should call the method that accepts a users input values. C. The object of one derived class should call the method that changes the values entered by the user. D. The object of the other derived class should call the method that prints the object values. 6- Your responsibility is to submit a code that has no errors and executable

Help is appreciated :)

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

10. Microsoft Corporation

Answered: 1 week ago

Question

4. EMC Corporation

Answered: 1 week ago