Skip to content

Instantly share code, notes, and snippets.

@NitinPraksash9911
Created January 12, 2021 16:38
Show Gist options
  • Save NitinPraksash9911/6150fef1f6eb0b20fb2c8b383d97f422 to your computer and use it in GitHub Desktop.
Save NitinPraksash9911/6150fef1f6eb0b20fb2c8b383d97f422 to your computer and use it in GitHub Desktop.
public class ElectricCar implements Car {
public void turnOnEngine() {
throw new AssertionError("I don't have an engine!");
}
public void accelerate() {
//this acceleration is crazy!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment