Problem

Break the sookoata Class into Two Classes Currently the BookData class contains all of...

Break the sookoata Class into Two Classes

Currently the BookData class contains all of the data about a book in the sto inventory. Now you will break the class into two classes: one that is a base class c taming on general data about a book, and another that is a derived class contain data about a book in inventory.

First, simplify the BookData class so it contains only the general data about a book-. Specifically, modify the BookData class so it contains only the following member van" ables and member functions:

Member Variables

bookTitle

isbn

author

publisher

Member Functions

setTitle

setISBN

setAuthor

setPub

Next you will create a new class named InventoryBook. This class will be derived from the BookData class, and will hold-inventory-related data about a book. Specifi-cally, this class will contain the following member variables and member functions, which were removed from the original BookData class:

Member Variables

dateAdded

qtyOnHand

wholesale

retail

Member Functions

setDateAdded

setQty

setWholesale

setRetail

isEmpty

removeBook

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT