Answered step by step
Verified Expert Solution
Link Copied!

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++

imageimage
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

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

C++ Primer Plus

Authors: Stephen Prata

6th Edition

978-0321776402, 0321776402

More Books

Students also viewed these Programming questions

Question

Am I buying this in an attempt to satisfy a psychological need?

Answered: 1 week ago

Question

Why is substrate thickness important in thin film biomaterials?

Answered: 1 week ago