Question: CS 2 1 1 - Term Project - Spring ' 2 4 . pdf CS 2 1 1 : Programming 2 Shape Hierarchy Term Project
CS Term Project Spring pdf
CS: Programming
"Shape Hierarchy" Term Project
Due Date: Thursday May @ pm
Description: Apply what you have learned in OOP, Inheritance, Polymorphism and Files IO techniques to build the above shown Shape hierarchy. For all classes we need to store the following information:
All shapes D and D must use overloaded comparison operators functions to compare if any object is less, greater, or equal to other objects of the same type in terms of area, perimeter, surfaceArea, volume attribute values,
readData print printToFileofstream &output readFromFileifstream &input functions must be implemented in all classes base and derived taking into consideration they will be used for polymorphism,
computeArea and computePerimeter functions must be implemented in all D shape classes including their base class taking into consideration their use in polymorphism,
computeSurfaceArea and computeVolume functions must be implemented in all D shape classes including their base class taking into consideration their use in polymorphism,
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
