Shape
Abstract base class for geometric shapes.
Usage
Shape()All shapes must implement area and perimeter properties.
Attributes
| Name | Description |
|---|---|
| area | The area of the shape. |
| perimeter | The perimeter of the shape. |
area
The area of the shape.
area: float
perimeter
The perimeter of the shape.
perimeter: float
Methods
| Name | Description |
|---|---|
| describe() | Describe the shape. |
describe()
Describe the shape.
Usage
describe()Returns
str-
Human-readable description.