Java methods pass through parameters or class variables
50
Jul 16, 2020

Hey, I'm wondering when I want to write a helper method whether I should pass through parameters or class variables. Are they the same when solving algorithm problems or is there a best practice?
Also, do you suggest me to make the helper methods and/or class variables public or private?
Thanks a lot

Comments (0)