Created
November 26, 2021 19:48
-
-
Save PragmaticCoding/a55821e44ddb909e290a05491bfaad4f to your computer and use it in GitHub Desktop.
Simple Class With 1 Field + Getter + Setter
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 Sample { | |
private int intField = 0; | |
public int getIntField() { | |
return intField; | |
} | |
public void setIntField(int newValue) { | |
intField = newValue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment