Created
February 7, 2011 18:42
-
-
Save markbates/814920 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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