14 lines
209 B
Python
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))
|