Skip to content

Instantly share code, notes, and snippets.

@markbates
Created February 7, 2011 18:44
Show Gist options
  • Select an option

  • Save markbates/814926 to your computer and use it in GitHub Desktop.

Select an option

Save markbates/814926 to your computer and use it in GitHub Desktop.
abstract class Bicycle {
abstract public void changeGear(int newValue);
abstract public void speedUp(int increment);
public void applyBrakes(int decrement) {
// do some work here
}
}
public class ACMEBicycle extends Bicycle {
public void applyBrakes(int decrement) {
// do some work here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment