Question: C++ (a) Define and implement a Book class, which has: i. Data members as described below: Title e Author Publisher . Genre {classic, science fiction,
C++
(a) Define and implement a Book class, which has: i. Data members as described below: Title e Author Publisher . Genre {classic, science fiction, mystery, thriller, math}. . Book Review {suitable, inspiring, suspenseful, must read, application-oriented) . Copies Sold ii. A default constructor iii. A constructor to create an object with given values. iv. A destructor. v. Several Methods with functionalitv as described below: . Displays all data member Updates book review Updates copies sold. Overloads the operators = and-for comparison. (b) Create some Book objects and test the class implementation Use reference variables, as appropriate, for arguments and return types, as described in Prata, Chapter 10. For more details on operator overloading, refer to Prata, Chapter 11. (a) Define and implement a Book class, which has: i. Data members as described below: Title e Author Publisher . Genre {classic, science fiction, mystery, thriller, math}. . Book Review {suitable, inspiring, suspenseful, must read, application-oriented) . Copies Sold ii. A default constructor iii. A constructor to create an object with given values. iv. A destructor. v. Several Methods with functionalitv as described below: . Displays all data member Updates book review Updates copies sold. Overloads the operators = and-for comparison. (b) Create some Book objects and test the class implementation Use reference variables, as appropriate, for arguments and return types, as described in Prata, Chapter 10. For more details on operator overloading, refer to Prata, Chapter 11
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
