In C++ Create an object oriented template custom array that uses inheritance to create ordered and unordered
Fantastic news! We've Found the answer you've been seeking!
Question:
In C++
Create an object oriented template custom array that uses inheritance to create ordered and unordered array implementations. To clarify, you should have some Array base class and the OrderedArray and UnorderedArray would inherit from that. Basically you are taking the array examples that we have gone through - and that I will post, and converting them to use inheritance. The classes will have the same functionality as the ones discussed in class with the following changes: 1) The Expand function should expand based on an increasing value (2, 4, 8, 16, etc) 2) Add the ability for the ordered array to prevent duplicate data (constructor flag, push method)Criteria Points 4 points Array Class You created the Array base class properly 4 points UnorderedArray Class You created the UnorderedArray sub class properly. 4 points OrderedArray Class You created the OrderedArray base class properly. 4 points Expand Function Your Expand function has been modified to expand based on an increasing value. 4 points No Duplicate Data Your OrderedArray class accepts no duplicate data
Related Book For
Posted Date: