prog-obiektowe/python/Rectangle.py

14 lines
209 B
Python
Raw Normal View History

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))