29 lines
854 B
C#
29 lines
854 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Lab.Entities
|
|
{
|
|
public class GasolineTanker : BaseTanker
|
|
{
|
|
public Color AdditionalColor { get; private set; }
|
|
public bool BodyKit { get; private set; }
|
|
public bool Wing { get; private set; }
|
|
public bool SportLine { get; private set; }
|
|
public GasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, bool bodyKit, bool wing, bool sportLine) : base(speed, weight, bodyColor)
|
|
{
|
|
AdditionalColor = additionalColor;
|
|
BodyKit = bodyKit;
|
|
Wing = wing;
|
|
SportLine = sportLine;
|
|
}
|
|
|
|
public void ChangeAddColor(Color color)
|
|
{
|
|
AdditionalColor = color;
|
|
}
|
|
}
|
|
}
|