13 lines
180 B
Python
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))
|