prog-obiektowe/python/Circle.py
2023-04-04 15:42:52 +02:00

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