Question: object-oriented C++ C++ QUESTION 1: Implement class Book. Function printDetails should print information about the book in a well-formatted manner. QUESTION 2: Implement class NormalBook,

object-oriented C++
C++
object-oriented C++C++ QUESTION 1: Implement class Book. Function printDetails should print information
about the book in a well-formatted manner. QUESTION 2: Implement class NormalBook,

QUESTION 1: Implement class Book. Function printDetails should print information about the book in a well-formatted manner. QUESTION 2: Implement class NormalBook, which inherits from class Book. Note the following: The weight data member represents the weight of the book in grams. -The print Type data member can be either "Hard-Cover" or "Paperback". - Function printDetails of the base class should be overridden to print the additional information about the weight and print type. QUESTION 3: Implement class EBook, which inherits from class Book. Note the following: -The fileType data member can be PDF, EPUB, CHM or AZW. -Function getTitle in the base class should be overridden to return the title + "(E-Book)". - Function printDetails of the base class should be overridden to print the additional information about the size in bytes and file type. QUESTION 4: Implement a driver program to test your code. Tonk Turnae NOTE 1: In all of your code, do not forget to validate all user input and to make all functions that do not modify the class constant. NOTE 2: Do not put all of your code in one file; separate implementation from the interface. NOTE 3: Avoid duplication of code! If something is already done in the base class, do not do it again in the derived class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!