Created
November 5, 2015 16:50
-
-
Save hussachai/af2042165413af9dfc2b to your computer and use it in GitHub Desktop.
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
public class Pet { | |
public static enum Type { | |
CAT, DOG | |
} | |
public static enum Color { | |
BLACK, WHITE, BROWN, GREEN | |
} | |
private String name; | |
private Type type; | |
private LocalDate birthdate; | |
private Color color; | |
private int weight; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment