Question: Code in C++ please, with some comments to understand, thank you Q3. Class Book (10 marks) Book is also a specialized Reference that has information

 Code in C++ please, with some comments to understand, thank youQ3. Class Book (10 marks) Book is also a specialized Reference that

has information about the publisher of this reference. It also has number

Code in C++ please, with some comments to understand, thank you

Q3. Class Book (10 marks) Book is also a specialized Reference that has information about the publisher of this reference. It also has number of pages as one of its attributes. 1. Book is a derived class of Reference 2. It stores the publisher (type string or char*) of this reference and the number of pages of this book (type int); 3. It also implements the member functions getNumberOfPages(), which returns the number of pages of this reference. In the case of Book reference, the number of pages is a single number, therefore, the member function simply returns this number; 4. It also implements functions related to the publisher. Key Notes: All the classes should have At least a default constructor, a copy constructor and a destructor Accessing functions A print function

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!