Java View all facts Glossary Help |
| mechanism > abstraction mechanism |
| abstraction mechanism comparison table | ||||||
| Subject | have purpose | be a benefit of | separate | allow | helps | has definition |
|---|---|---|---|---|---|---|
| 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 | to achieve information hiding | Creating a module to contain some algorithm or data structure, thus hiding its details behind the module's interface | |
| modularity | source code for an class can be written and maintained independently of the source code for other classes | object-oriented programming |
Next mechanism: binding Up: mechanism Previous mechanism: synchronization