public class Car {
    private final int id;
    private final String name;
    private final String image;
    private final String description;
    private final String category;
    private final int seats;
    private final double priceKm;
    private final boolean active;

    public Car(int id, String name, String image, String description, String category, int seats, double priceKm, boolean active) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.description = description;
        this.category = category;
        this.seats = seats;
        this.priceKm = priceKm;
        this.active = active;
    }

    public int getId() { return id; }
    public String getName() { return name; }
    public String getImage() { return image; }
    public String getDescription() { return description; }
    public String getCategory() { return category; }
    public int getSeats() { return seats; }
    public double getPriceKm() { return priceKm; }
    public boolean isActive() { return active; }

    @Override
    public String toString() {
        return name + " (" + category + ")";
    }
}
