# subclass
from GeometricObject import GeometricObject
from math import pi

class Circle(GeometricObject):
    def __init__(self, radius = 10):
        super().__init__() # initialize geometric as super
        self.__radius = radius

    def getRadius(self):
        return self.__radius
    def setRadius(self, radius):
        self.__radius = radius

    def getArea(self):
        return self.__radius**2 * pi

    def getDiameter(self):
        return self.__radius * 2
    
    def getPerimeter(self):
        return 2 * pi * self.__radius

    def __str__(self):
        return f"{super().__str__()} radius: {str(self.__radius)}"

f15d4d4a1bc9e8245f75e128dad9ac112ac18743
<mask token>


class Circle(GeometricObject):

    def __init__(self, radius=10):
        super().__init__()
        self.__radius = radius
    <mask token>
    <mask token>

    def getArea(self):
        return self.__radius ** 2 * pi

    def getDiameter(self):
        return self.__radius * 2
    <mask token>

    def __str__(self):
        return f'{super().__str__()} radius: {str(self.__radius)}'

<mask token>


class Circle(GeometricObject):

    def __init__(self, radius=10):
        super().__init__()
        self.__radius = radius
    <mask token>

    def setRadius(self, radius):
        self.__radius = radius

    def getArea(self):
        return self.__radius ** 2 * pi

    def getDiameter(self):
        return self.__radius * 2
    <mask token>

    def __str__(self):
        return f'{super().__str__()} radius: {str(self.__radius)}'

<mask token>


class Circle(GeometricObject):

    def __init__(self, radius=10):
        super().__init__()
        self.__radius = radius

    def getRadius(self):
        return self.__radius

    def setRadius(self, radius):
        self.__radius = radius

    def getArea(self):
        return self.__radius ** 2 * pi

    def getDiameter(self):
        return self.__radius * 2
    <mask token>

    def __str__(self):
        return f'{super().__str__()} radius: {str(self.__radius)}'

<mask token>


class Circle(GeometricObject):

    def __init__(self, radius=10):
        super().__init__()
        self.__radius = radius

    def getRadius(self):
        return self.__radius

    def setRadius(self, radius):
        self.__radius = radius

    def getArea(self):
        return self.__radius ** 2 * pi

    def getDiameter(self):
        return self.__radius * 2

    def getPerimeter(self):
        return 2 * pi * self.__radius

    def __str__(self):
        return f'{super().__str__()} radius: {str(self.__radius)}'

# subclass
from GeometricObject import GeometricObject
from math import pi

class Circle(GeometricObject):
    def __init__(self, radius = 10):
        super().__init__() # initialize geometric as super
        self.__radius = radius

    def getRadius(self):
        return self.__radius
    def setRadius(self, radius):
        self.__radius = radius

    def getArea(self):
        return self.__radius**2 * pi

    def getDiameter(self):
        return self.__radius * 2
    
    def getPerimeter(self):
        return 2 * pi * self.__radius

    def __str__(self):
        return f"{super().__str__()} radius: {str(self.__radius)}"
