Skip to content

Instantly share code, notes, and snippets.

@PragmaticCoding
Created November 26, 2021 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PragmaticCoding/a55821e44ddb909e290a05491bfaad4f to your computer and use it in GitHub Desktop.
Save PragmaticCoding/a55821e44ddb909e290a05491bfaad4f to your computer and use it in GitHub Desktop.
Simple Class With 1 Field + Getter + Setter
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