prog-obiektowe/python/Square.py

13 lines
180 B
Python
Raw Normal View History

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