Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the Program in C++ Plz! Q5. Reference Manager (20 marks) Create a class called Reference Manager that will be used as a container to

image text in transcribed

Write the Program in C++ Plz!

Q5. Reference Manager (20 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 Managerint 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. Reference Manager 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 get(int 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

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

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

More Books

Students also viewed these Databases questions