Search:

Type: Posts; User: helloworld922

Search: Search took 0.07 seconds.

  1. Re: How to share variable values amongst different classes?

    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
  2. Re: How to share variable values amongst different classes?

    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...
Results 1 to 2 of 2