Created
October 22, 2015 16:02
-
-
Save AlexJoz/f7b1426fc5648996485f to your computer and use it in GitHub Desktop.
Enum Direction
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
enum Direction { | |
VERTICAL { | |
public Direction opposite() { | |
return HORIZONTAL; | |
} | |
}, | |
HORIZONTAL { | |
public Direction opposite() { | |
return VERTICAL; | |
} | |
}; | |
public abstract Direction opposite(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment