on-internet
← Community

Difference between setting variables through methods and setting actual variable [closed]

Stack Overflow ·

I'm not experienced in programming, but I was wondering what the difference was between setting a variable through a method. Ex: void setShowFPS(boolean b){ this.showFps = b; } vs. just calling the variable showFps = false;

Comments

Sign in or sign up to comment and upvote.

No comments yet.