Last active
December 31, 2015 11:59
-
-
Save naoto/7983721 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
Class Monster { | |
private static final String EMERGENCY_LIFE_LIMIT = 20; | |
private String name = ""; | |
private Integer life = 0; | |
public Monster(String name){ | |
this.name = name; | |
this.life = 100; | |
} | |
public boolean isEmergencyLife(){ | |
return this.life < EMERGENCY_LIFE_LIMIT; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment