Created
April 26, 2015 04:09
-
-
Save rurtubia/e47b6f3112cebf243caa to your computer and use it in GitHub Desktop.
Java Getters and Setters
This file contains hidden or 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
| //Numeric Data: | |
| //Getter | |
| public double getTotal() { | |
| return total; | |
| } | |
| //Setter | |
| public void setTotal(double total) { | |
| this.total = total; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment