Question: Help ASAP Consider the following class: Bifndef BIDCOLLECTION H #define BIDCOLLECTION,H #include bids.h class BidCollection ( int MaxSize; int size Bid elements;/array of bids public
Consider the following class: Bifndef 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 the indicated number of bids BidCollection (int MaxBids 1000) -BidCollection 0: // Access to attributes int getMaxSize) const (return MaxSize:) int getsize) const (return size: Il Access to individual elements const Bid& get(int index) const freturn elementslindex)) l Collection operations void addinTimeOrder (const Bid& value) IAdds this bid into a position such that /I all bids are ordered by the time the bid was placed /Pre: getSize0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
