Created
May 15, 2011 01:23
-
-
Save chrisyco/972805 to your computer and use it in GitHub Desktop.
Epic Example From Java Specification
This file contains 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 Fish { int getNumberOfScales(); } | |
interface Piano { int getNumberOfScales(); } | |
class Tuna implements Fish, Piano { | |
// You can tune a piano, but can you tuna fish? | |
int getNumberOfScales() { return 91; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment