prog-obiektowe/python/Rectangle.py
2023-04-04 15:42:52 +02:00

14 lines
209 B
Python

from Figure import Figure
from Square import Square
class Rectangle(Square):
_y = None
def sety(self, y):
self._y = y
def area(self):
print("area = " + str(self._x * self._y))