>>15
Java taught many wrong lessons. Many people believe that encapsulation is “hiding” attributes with private and defining accessor methods (get/set).
I thought this was the actual definition of encapsulation.
If that's not the real definition, what is it?