RefactorInsight-master/plugin/src/test/testData/example-refactorings/src/main/java/vehicles/cars/SportsCar.java
package main.java.vehicles.cars;

import main.java.vehicles.components.carComponents.EngineImpl;

public class SportsCar extends Car{


    private int noOfSeats;

    public SportsCar(int noOfSeats, int maxSpeed, double currentSpeed, int seatHeight, String engine) {
        super(maxSpeed, currentSpeed, seatHeight, engine);
        this.noOfSeats = noOfSeats;
    }

    public void setEngine(String engine) {
        EngineImpl.engine = engine;
    }

    public String getEngine() {
        return EngineImpl.engine;
    }

    private void doubleSpeed() {
        this.getSpeed().setCurrentSpeed(this.getSpeed().getCurrentSpeed() * 2);
    }
}
