Question: C++ Please use all concepts.. inheritance, polymorphism, container, templates Could be done in those topic... thanks The objective of the Final Project is to write
The objective of the Final Project is to write a program which incorporates several advanced concepts and corresponding C++ constructs, such as Inheritance Polymorphism Containers and STL Templates Generic Algorithms The Final Project application will use a collection of several types on elements placed in a class hierarchy, so we can leverage polymorphism to manage the items at a common, denominator level, while also utilizing specialized aspects, unique to each type. In order to accomplish this, the container will have to store the base class pointers, as handles to sub-classed specia items. The collection will be organized in a STL container ill use a generic algorithm to effciently sort and search the container. The project will also incorporate a custom function template to capture an algorithm common for both sub-class types, but applied to a specific type. The functionality, encapsulated in methods and invoked through the menu, will include the following, Adding an item to the container Sorting the container based on an items' base class attribute (identifier, serial number, tag, etc.) Searching for an item in the container. Prompt the user to select or enter an identifier. Removing a located item from the container Displaying the sorted list of items, detailing their attributes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
