Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 dataCreate 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started