Encapsulation refers to the bundling of data with the methods that operate on that data. Often that definition is misconstrued to mean that the data is somehow hidden. In Java, you can have encapsulated data that is not hidden at all.
Encapsulation or equivalently information hiding refers to the practice of including within an object everything it needs, and furthermore doing this in such a way that no other object need ever be aware of this internal structure.
Better Tools Happy Engineers
-
*"The only thing constant in a Startup is Change"*
If you aren't changing fast enough then order and complacency sets in which
leads to mediocrity and you...
7 years ago
No comments:
Post a Comment