Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save markbates/814920 to your computer and use it in GitHub Desktop.
interface Bicycle {
void changeGear(int newValue);
void speedUp(int increment);
void applyBrakes(int decrement);
}
public class ACMEBicycle implements Bicycle {
public void changeGear(int newValue) {
// do some work here
}
public void speedUp(int increment) {
// do some work here
}
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