Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the Program in C++ Plz! Q3. Class Book (20 marks) Book is also a specialized Reference that has information about the publisher of this

image text in transcribed

image text in transcribed

Write the Program in C++ Plz!

Q3. Class Book (20 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. Q1. Class Reference (20 marks) Implement a class, called Reference, to represent the characteristics that are common to all the References. Namely, 1. All references must have a unique identifier (of type int). 2. All references have a title and author (both of type string or char*), as well as year of publication (of type int); Q3. Class Book (20 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. Q1. Class Reference (20 marks) Implement a class, called Reference, to represent the characteristics that are common to all the References. Namely, 1. All references must have a unique identifier (of type int). 2. All references have a title and author (both of type string or char*), as well as year of publication (of type int)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What do you mean by dual mode operation?

Answered: 1 week ago

Question

Explain the difference between `==` and `===` in JavaScript.

Answered: 1 week ago

Question

Persuading Your Audience Strategies for

Answered: 1 week ago