Question: The Triangle and Octagon classes were extended from RegPolygon class. Define the Square class which is a subclass of the RegPolygon and have the calcArea
The Triangle and Octagon classes were extended from RegPolygon class. Define the Square class which is a subclass of the RegPolygon and have the calcArea method in the Square class call calcRegPolyArea method to calculate the are of square.
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
Here is an example implementation in Python python class RegPolygon def initself numsides sideleng... View full answer
Get step-by-step solutions from verified subject matter experts
