prog-obiektowe/python/Circle.py

12 lines
179 B
Python
Raw Normal View History

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