java-training/src/Car.java
<filename>java-training/src/Car.javapublic class Car extends Automobile {
    public Car(int amountOfFuel, int speed) {
        super(amountOfFuel, speed);
    }

    @Override
    public void accelerate(int speedToIncrease) {
        this.setSpeed(this.getSpeed() + speedToIncrease * 2);
    }
}

/*
Object (has equals, hashCode, toString....)
    Automobile (has accelerate())
        Car (has an overrided accelerate() with a different implementation (polymorphism))
 */