public class Car { private String type; private int speed; public Car(String type, int speed) { this.type = type; this.speed = speed; } public String getType() { return sType; } public int getSpeed() { return speed; } }