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

13 lines
180 B
Python

from Figure import Figure
class Square(Figure):
_x = None
def setx(self, x):
self._x = x
def area(self):
print("area = " + str(self._x * self._x))