Write three classes named Rectangle, Circle and Triangle. 1. Each class should contain two methods named...
Fantastic news! We've located the answer you've been seeking!
Transcribed Image Text:
▸ Write three classes named Rectangle, Circle and
1. Each class should contain two methods named
calculateArea and DisplayArea
Note that: You should specify the attributes of each class and the parameters
I that must be passed
1. Provide Constructors for each class to initialize
2. Write an application to create three objects of type
Rectangle, Circle and Triangle then calculate
and print the Area of each object.
Answer rating: 100% (QA)
import math Create class for Rectangle class Rectangle Define parameters for Rectangle def init selfView the full answer