Question: In C++ Please, All the classes should have: - At least a default constructor, a copy constructor and a destructor - Accessing functions - A

 In C++ Please, All the classes should have: - At least

a default constructor, a copy constructor and a destructor - Accessing functions

In C++ Please, All the classes should have: - At least a default constructor, a copy constructor and a destructor - Accessing functions - A print function

Q1. Class Reference (10 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); Q2. Class Article (10 marks) Article is a specialized Reference that also has information about the journal where the article is published, start page, and end page. More precisely, 1. An Article is a derived class of Reference 2. It also stores information about the journal (type string or char*), and the startPage and endPage (both of type int); 3. It implements the additional member function int getNumberOfPages(), which returns the total number of pages (computed using starPage and endPage); Q4. Class TextBook (10 marks) TextBook is a specialized Book. A textbook has an additional attribute, Web URL (Uniform Resource Locator), where students can find additional material such as slides, exercises, etc. 1. TextBook is a derived class of Book 2. It implements additional functions related to the setting and getting the URL

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!