12 lines
179 B
Python
12 lines
179 B
Python
|
from Figure import Figure
|
||
|
|
||
|
|
||
|
class Circle(Figure):
|
||
|
_r = None
|
||
|
|
||
|
def setr(self, r):
|
||
|
self._r = r
|
||
|
|
||
|
def area(self):
|
||
|
print("area = " + str(3.14 * self._r**2))
|