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