Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#ifndef BIDCOLLECTION_H #define BIDCOLLECTION H #include bids.h class BidCollection { int MaxSize; int size; Bid* elements; // array of bids public: * Create a collection

image text in transcribed
image text in transcribed
image text in transcribed
#ifndef BIDCOLLECTION_H #define BIDCOLLECTION H #include "bids.h" class BidCollection { int MaxSize; int size; Bid* elements; // array of bids public: * Create a collection capable of holding bids 7 BidCollection (); Bidcollection (const BidCollections): BidCollection (); BidCollectione operator= (conat BidCollection); 1 Access to attributes int getSize() const {return size; } 11 Rocess to individual elemente const B:s gesint index const return elemente index): // Access to individual elements const Bids get (int index) const {return elements [index]i| // Collection operations void addInTimeOrder (const Bids value); // Adds this bid into a position such that 7/ all bids are ordered by the time the bid was placed void remove (int index); 11 Remove the bid at the indicated position 1/Pre: 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

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions