CSC_211_Assignment_5___Inheritance_and_Operator_Overloads
CSC_211_Assignment_5___Inheritance_and_Operator_Overloads
Overloads
Todd W. Flyr
6th March, 2025
A Base Requirements
Due: Thursday, Mar 13th, midnight.
Remember for all assignments, the following are required:
• All member variables must be private and requires accessors/mutators for control.
• All classes with dynamic data must manage it, have destructors, default ctors/ initializing
ctors, etc.
• as usual, SAVE THIS CODE, WE MAY MODIFY IT IN THE NEXT ASSIGNMENT! (I’m
not sure yet, but save it just in case!)
B Technical Requirements
B-1 Base Class Implementation
• Overloads the == (comparison) operator to see if two books are equal. Here’s an
example of that if you need it: https://www.geeksforgeeks.org/how-to-overload-operator-
in-cpp/
B-2-1 Required Derived Class Features
The derived class must include:
C Library Class
Create class called Library that contains a pointer to an array of Books and a string for the
owner of the library (may be a person or a school or something).
This class has the following additional requirements:
• It must have an accessor add book to allow the user to add a book which resizes the
array.
• Creation of book objects, and the ability to add them to the library.
• Testing all overloaded operators (e.g. copy one library to another, prove that it works)