Search:

Type: Posts; User: Pratyush

Search: Search took 0.17 seconds.

  1. Re: Why do we make variables of a class private?

    Thanks for very clear and transparent answer. I seem to get it now more and more. Basically what it means is that we follow such standards so as to enhance flexibility and maintainability of the code...
  2. Why do we make variables of a class private?

    I know that variables are made private in simple pojos so as to implement the concept of encapsulation. But my question is why do we do that if we indirectly access the same object's variable through...
Results 1 to 2 of 2