hehe, I remember first getting into OOP. I had no idea why anyone would want to create private variables/methods! Why restrict yourself? Then I started college and it all changed :P
Type: Posts; User: helloworld922
hehe, I remember first getting into OOP. I had no idea why anyone would want to create private variables/methods! Why restrict yourself? Then I started college and it all changed :P
It's almost always a bad idea to have public instance variables. You should encapsulate with getters/setters/other methods.
Because of the way Java handles object variables by reference, you can...