Готовая Лабораторная 2

This commit is contained in:
Никита Белянин 2023-10-29 19:21:52 +04:00
parent a3c081c02a
commit bac51aa40c
6 changed files with 7 additions and 8 deletions

View File

@ -5,7 +5,7 @@ public enum CountWheels {
Five(5);
private final int Value;
CountWheels(int Count){
Value=Count;
Value = Count;
}
public int getCountWheels(){
return Value;

View File

@ -6,8 +6,7 @@ public class EntityTank extends EntityArmoVehicle {
public boolean Caterpillar;
public boolean Tower;
public EntityTank(int speed, double weight, Color bodyColor, int _numWheel, Color additionalColor, boolean bodyKit, boolean caterpillar, boolean tower)
{
public EntityTank(int speed, double weight, Color bodyColor, int _numWheel, Color additionalColor, boolean bodyKit, boolean caterpillar, boolean tower) {
super(speed, weight, bodyColor, _numWheel);
AdditionalColor = additionalColor;
BodyKit = bodyKit;