(6) (25 points) this question is similar as the above question 5 in terms of exercising the polymorphic method. create a shape class with three subclasses (circle, triangle, and square). with the exception of the triangle class, each class has two member functions named draw() and triangle does not have an erase() function. in your testshapepolymorphic program ( the class with the psvm (main ( ) ), generate an array of 9 random shape types and display (draw) them.

Solved
Show answers

Ask an AI advisor a question