Created
February 4, 2017 20:12
-
-
Save GedMullen/d9030497dc4039851ffa19d8a27f8ff2 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
Coffee coffee = new Coffee(); | |
if(coffee.isEmpty()){ //use lower camel case and accessor method to access attribute | |
coffee.refill(); //lower camel case for method name | |
}else{ //else is more often written with the braces next to it | |
coffee.drink(); //lower camel case for the method | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment