Java View all facts Glossary Help |
mechanism > abstraction mechanism > encapsulation |
encapsulation | ||||
subject | fact |
encapsulation | allows changes to code to be more easily made since one can be confident that 'outsiders' are not relying on too many details | |
has definition Creating a module to contain some algorithm or data structure, thus hiding its details behind the module's interface | ||
has purpose information hiding | ||
has purpose modularity | ||
has purpose to allow users to view an object as a black box that provides services, because objects encapsulate data and implementation. | ||
helps to achieve information hiding | ||
is a subtopic of Object Oriented Programming Concepts | ||
is a kind of abstraction mechanism | ||
separates the interface from the implementation of methods |