Advertisement
haiv

Java Accessor (Getter and Setter)

Jun 2nd, 2017
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.13 KB | None | 0 0
  1.     T m_var;
  2.     public T getVar() { return this.m_var; }
  3.     public Class setVar(T newValue) { this.m_var = newValue; return this; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement