Quantcast
Viewing latest article 7
Browse Latest Browse All 14

Answer by user1190541 for Java setter and getter?

Data hiding is bad term, better say data encapsulation. In java access to private members is done through accessors and mutators ( getter and setter), it is all about hiding and controlling access to your members so you can control how inner state of instance will be modified.

I think if you mention something about java reflection / metadata -> you will get bonus points


Viewing latest article 7
Browse Latest Browse All 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>