Question: In Python Programming: PROGRAMMING EXERCISES Sections 12.2-12.6 12.1 (The Triangle class) Design a class named Triangle that extends the Geometricobject class. The Triangle class contains:
PROGRAMMING EXERCISES Sections 12.2-12.6 12.1 (The Triangle class) Design a class named Triangle that extends the Geometricobject class. The Triangle class contains: Three float data fields named side 1, side2, and side3 to denote the three sides of the triangle. A constructor that creates a triangle with the specified side!, side2, and side3 with default values 1.0 The accessor methods for all three data fields. A method named getArea() that returns the area of this triangle. A method named getPer imeter() that returns the perimeter of this triangle. A method named-str--() that returns a string description for the triangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
