PIbd-21_KozyrevSS_GasolineT.../GasolineTanker.java
2023-11-28 18:10:22 +04:00

22 lines
795 B
Java

import java.awt.*;
public class GasolineTanker extends BaseTanker{
private Color AdditionalColor;
public Color GetAdditionalColor() {return AdditionalColor;}
public void setAdditionalColor(Color color) {AdditionalColor = color;}
private boolean BodyKit;
public boolean GetBodyKit() {return BodyKit;}
private boolean Wing;
public boolean GetWing() {return Wing;}
private boolean SportLine;
public boolean GetSportLine() {return SportLine;}
public GasolineTanker(int speed, double weight, Color bodyColor, Color additionalColor, boolean bodyKit, boolean wing, boolean sportLine)
{
super(speed, weight, bodyColor);
AdditionalColor = additionalColor;
BodyKit = bodyKit;
Wing = wing;
SportLine = sportLine;
}
}