{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Dale - Computer Science Illuminated 288

Dale - Computer Science Illuminated 288 - 8.4 Functionality...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Encapsulation A language feature that enforces information hiding Object class or Class (problem-solving phase) A description of a group of objects with similar properties and behaviors Object (problem-solving phase) An entity or thing that is relevant in the context of a problem Object (implementation phase) An instance of a class Class (implementation phase) A pattern for an object Instantiate To create an object from a class 8.4 Functionality of Object-Oriented Languages 261 8.4 Functionality of Object-Oriented Languages There 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 at each of these ingredients. Encapsulation In Chapter 6, we talked about important threads running through the discussion. Two of them were information hiding and abstraction . Recall that information hiding is the practice of hiding the details of a module with the goal of controlling access to the details. We said that abstraction
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}