Answered You can hire a professional tutor to get the answer.

QUESTION

The purpose of this assignment is to practice the creation and use of C++ inheritance. You are assigned the same business store you had in previous

Header Files (.hpp)

The header file for the base class will remain the same as in Assignment 6. The header file for the derived class will declare 2 additional attributes of your choosing (one string and one integer) for the special store. This header file must also declare prototypes for the accessor and a mutator methods (get and set) for each new attribute, It should also contain a Default Constructor and a Constructor with parameters to initialize all attributes of base and derived classes. The class should also contain a Destructor method (probably with no statement inside), and a method to print all information of the Special store with descriptive labels. Every declaration should be properly documented.

Class C++ Files (.cpp)

The .cpp file for the base class will remain the same as in Assignment 6. The .cpp file for the subclass will contain the definition of all class member functions for the subclass. Every method should be properly documented.

Driver Class File (.cpp)

The driver class will only contain a main function. This function will declare and an array of special business stores. Each element of the array will be initialized by the constructors. You must show the use of all constructors in the subclass. You must also print all the information of all the special business stores in a form of a table, with headings and labels defining the store names and the attribute names.

Do not forget to add comments to the code. Each file and each function must have a head of comments indicating the name of the file, the name of the author, and a brief description of the program. Methods and variable names must also be documented.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question