Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribed

BookCollection.h

image text in transcribed

BookCollection.cc

image text in transcribed

Thank you!

#include "Book.h" 6 Book::Book (string t, int y), title year = t; = y; 11 cout using namespace std; #include #include "BookCollection.h", #include "Book.h" #include "Book.cc" 3 BookCollection:: BookCollection() 3 BookCollection::BookCollection(const Book Collection& otherGroupArray), 3 BookCollection: :-BookCollection() cout

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

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

=+which it operates?

Answered: 1 week ago