Question
In C++ please: I have a BookCollection class that manages a primitive array of books and has functions to manage these books. It has a
In C++ please:
I have a BookCollection class that manages a primitive array of books and has functions to manage these books. It has a data member that holds the book collection (this is statically allocated array of Book object pointers with 60 as a preprocessor constant for the maximum number of books ALSO a data member to track the current number of books in the array)
You have to add the following to BookCollection.cc:
1. a constructor that initializes the current number of books
2. a copy constructor that performs a deep copy of the book collection; using correct design principles, this function must call the Book copy constructor to create a copy of each Book object
Book.cc:
BookCollection.h
BookCollection.cc
Thank you!
#include "Book.h" 6 Book::Book (string t, int y), title year = t; = y; 11 cout using namespace std; #includeStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started