Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class Main {
public static void main(String[] args){
Engine petrolEngine = new PetrolEngine();
Car car = new Car(petrolEngine);
car.start();
car.stop();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment