29 lines
854 B
C#
Raw Normal View History

2023-09-26 19:32:10 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lab.Entities
{
2023-10-18 12:24:01 +04:00
public class GasolineTanker : BaseTanker
2023-09-26 19:32:10 +04:00
{
public Color AdditionalColor { get; private set; }
public bool BodyKit { get; private set; }
public bool Wing { get; private set; }
public bool SportLine { get; private set; }
2023-10-18 12:24:01 +04:00
public GasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, bool bodyKit, bool wing, bool sportLine) : base(speed, weight, bodyColor)
2023-09-26 19:32:10 +04:00
{
AdditionalColor = additionalColor;
BodyKit = bodyKit;
Wing = wing;
SportLine = sportLine;
}
2023-11-14 23:39:34 +04:00
public void ChangeAddColor(Color color)
{
AdditionalColor = color;
}
2023-09-26 19:32:10 +04:00
}
}