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

In C++

Create an object oriented template custom array that uses inheritance to createordered and unordered array implementations. To clarify, you should have some Array

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

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 Ordered Array 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)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!