package DoubleDeckerBus.Entities; import java.awt.*; public class EntityBus { public int Speed; public double Weight; public Color BodyColor; public double Step; public int Speed() { return Speed; } public double Weight() { return Weight; } public Color BodyColor() { return BodyColor; } public double Step() { return Step; } public EntityBus(int speed, double weight, Color bodyColor) { Speed = speed; Weight = weight; Step = (double) Speed * 100 / Weight; BodyColor = bodyColor; } }