Encapsulation is grouping all related functionality in one place. Apart from being cohesive (related fields and methods being together), it helps in securing the data fields of an object from being ...
My usage of 'encapsulation' may be incorrect, but here goes...<BR><BR>Assume you have the following:<BR><pre class="ip-ubbcode-code-pre">public class AAA extends BBB { ...