Question: I need help ASAP please. Below is the assignment: Using the Node and Stack classes from Program #6, do the following: Create a base class
I need help ASAP please. Below is the assignment:
Using the Node and Stack classes from Program #6, do the following:
Create a base class called Shape which has an attribute Name. Since a shape is amorphous, set the class up so that an object of type Shape can not be
instantiated.
Create three derived classes of your choice whose base class is Shape. These derived classes should have accessors/mutators for their class specific attributes, as well as methods to compute the area and the perimeter of the shape.
In main(), create a stack of pointers to Shape and push one object of each derived class onto the stack. Then, pop each shape pointer off of the stack and output that shape's area and perimeter, demonstrating polymorphism.
Create a .zip file of the program directory and post the .zip file to Canvas.
Ask me for code I already have.. it wouldn't let me post it here because it was too long apparently.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
