Created
February 7, 2011 18:44
-
-
Save markbates/814926 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
| 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