Question: Serendipity Booksellers Software DevelopmentProject Part 13: A Problem-Solving Exercise 1. Convert the BookData Structure to a Class. The program currently keeps data about books in
Serendipity Booksellers Software DevelopmentProject Part 13: A Problem-Solving Exercise 1. Convert the BookData Structure to a Class.
The program currently keeps data about books in a structure called BookData.Convert the structure declaration to a class declaration. The existing membervariables should be made private. 2. Convert Functions to Member Functions. In Chapter 11 you created the following functions for directly accessing ormanipulating the member variables of the BookData structure:
setTitlesetISBNsetAuthorsetPubsetDateAddedsetQtysetWholesalesetRetailisEmptyremoveBook
Because the structure is now a class, and the member variables are private, youwill need to convert these functions to member functions of the BookDataclass.
How would I go about doing this?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
