Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CPLUS PLUS ONLY Build a base class of your choice that has at least one data member. Build another class, using the characteristics below, that

CPLUS PLUS ONLY

Build a base class of your choice that has at least one data member.

Build another class, using the characteristics below, that inherits from the above mentioned class. a. Uses #ifndef and #endif to prevent multiple inclusions b. Has a minimum of 3 private data members, all different types c. Has a minimum of two constructors. One of which must provide default arguments. d. Overloads at least one function from its parent class e. Separates class declaration from implementation f. Has a set and get member function for each data member g. Overload the following operators: <<, >>, = and = =. You should not use keyword friend when you overload the = = operator. h. Ensure that all your get functions are const i. Create a non-const member function of your choice that is not part of what has already been specified above. j. Create an additional data member that is static k. Create a static member function that uses your static data member l. Show your static data member being used in a non-static member function m. Use the this pointer in at least two places in your code n. Create a separate third class of your choice. This class will have at least one data member. You will now add a const data member of this new class within your derived class (essentially doing composition). Make any changes necessary to the derived classs constructor in order to handle this new data member object. o. Use the const data member in at least one of your functions in the derived class.

Driver Program (20 pts)

Now build a driver program that builds an object of each class you built. Exercise every function from each class at least once. Make sure your code is compilable, otherwise you might miss subtle mistakes.

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

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago