EncapsulationAlanguage feature thatenforces informationhidingObject class or Class(problem-solving phase)A description of a groupof objects with similarproperties and behaviorsObject(problem-solvingphase)An entity orthing that is relevant inthe context of a problemObject(implementationphase)An instance ofa classClass (implementationphase)A pattern for anobjectInstantiateTo createan object from a class8.4Functionality of Object-Oriented Languages2618.4Functionality of Object-OrientedLanguagesThere are three essential ingredients in an object-oriented language: encap-sulation, inheritance, and polymorphism. These ingredients foster reuse,thus reducing the cost of building and maintaining software. Let’s look ateach of these ingredients.EncapsulationIn Chapter 6, we talked about important threads running through thediscussion. Two of them were information hidingand abstraction. Recallthat information hiding is the practice of hiding the details of a modulewith the goal of controlling access to the details. We said that abstraction
This is the end of the preview.
access the rest of the document.