Question: please do so in C++ 05. Reference Manager (30 marks) Create a class called Reference Manager that will be used as a container to hold

please do so in C++
please do so in C++ 05. Reference Manager (30 marks) Create a
class called Reference Manager that will be used as a container to

05. Reference Manager (30 marks) Create a class called Reference Manager that will be used as a container to hold objects of classes Article, Book, and TextBook. 1. Reference Manager has a fixed capacity. It uses a fixed size array to store References. 2. The first reference added to the container will be added at position zero, the second one at position 1, and so on. A reference is always added at the next available position; 3. A Reference Manager has one, regular constructor: Reference Manager(int capacity). The constructor must create an array of size capacity, which will be used to store References. It will also initialize the instance variables that your implementation requires. 4. ReferenceManager will have size data member, which will track the number of references in the array 5. bool add(Reference & reference); adds a reference at the next available position and returns true, or returns false if the reference manager is full. 6. Int getint pos); returns the identifier of the Reference object stored at position pos of the Reference Manager. You can assume that pos is a valid index, i.e. 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a C program for the ReferenceManager we need to define classes for Article Book TextBook and the ReferenceManager itself Heres a basic imple... View full answer

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!