From d4637f5853ef41778180518a7457ef0bfb33d820 Mon Sep 17 00:00:00 2001 From: Evgeny Egov Date: Sat, 6 Jan 2024 17:24:39 +0400 Subject: [PATCH] =?UTF-8?q?=D1=87=D1=82=D0=BE=D0=B1=D1=8B=20=D0=BD=D0=B5?= =?UTF-8?q?=20=D0=B1=D1=8B=D0=BB=D0=BE=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE?= =?UTF-8?q?=D0=BA=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D1=8F=D1=86=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectSportCar/ProjectSportCar/Entities/EntitySportCar.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectSportCar/ProjectSportCar/Entities/EntitySportCar.cs b/ProjectSportCar/ProjectSportCar/Entities/EntitySportCar.cs index c15abbb..db0900e 100644 --- a/ProjectSportCar/ProjectSportCar/Entities/EntitySportCar.cs +++ b/ProjectSportCar/ProjectSportCar/Entities/EntitySportCar.cs @@ -26,7 +26,7 @@ public class EntitySportCar : EntityCar public bool SportLine { get; private set; } /// - /// Инициализация полей объекта-класса спортивного автомобиля + /// Конструктор сущности /// /// Скорость /// Вес автомобиля @@ -35,7 +35,7 @@ public class EntitySportCar : EntityCar /// Признак наличия обвеса /// Признак наличия антикрыла /// Признак наличия гоночной полосы - public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bodyKit, bool wing, bool sportLine) + public EntitySportCar(int speed, double weight, Color bodyColor, Color additionalColor, bool bodyKit, bool wing, bool sportLine) : base(0, 0, Color.Black) { AdditionalColor = additionalColor; BodyKit = bodyKit;