def __init__(self, color_param, width_param, height_param): """ Класс должен содержать конструктор по параметрам «ширина», «высота» и «цвет». В конструкторе создается объект класса «Цвет фигуры» для хранения цвета. """ self.width = width_param self.height = height_param self.fc = FigureColor() self.fc.colorproperty = color_param
def __init__(self, color_param, width_param, height_param): self.fc = FigureColor() self.fc.colorproperty = color_param self.width = width_param self.height = height_param
def __init__(self, color, radius): self.radius = radius self.figure_color = FigureColor() self.figure_color.color_property = color
def __init__(self, color, width, height): self._width = width self._height = height self._figure_color = FigureColor() self._figure_color.color_property = color
def __init__(self, weight, height, color): self.shape = 'Прямоугольник' self.weight = weight self.height = height self.color = FigureColor(color) self.area = self.CalcArea()
def __init__(self, color, radius): self.radius = radius self.fig_col = FigureColor() self.fig_col.color = color
def __init__(self, color_param, r_param): self.r = r_param self.fc = FigureColor() self.fc.colorproperty = color_param
def __init__(self, color, length): super().__init__(color, length, length) self.length = length self.fig_col = FigureColor() self.fig_col.color = color
def __init__(self, color, width, height): self.height = height self.width = width self.fig_col = FigureColor() self.fig_col.color = color
def __init__(self, radius, color): self.shape = 'Окружность' self.radius = radius self.color = FigureColor(color) self.area = self.CalcArea()