public class Car {
    private int id;
    private String name;
    private String color;
    private int price;

    public Car(int id, String name, String color, int price) {
        this.id = id;
        this.name = name;
        this.color = color;
        this.price = price;
    }

    public String getColor() { return color; }
    public int getPrice() { return price; }
    
    @Override
    public String toString() {
        return name + "(" + color + ", " + price + ")";
    }
}
