Dale - Computer Science Illuminated 288

Dale Computer - 8.4 Functionality of Object-Oriented Languages 261 8.4 Functionality of Object-Oriented Languages There are three essential

Info iconThis 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
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.

Ask a homework question - tutors are online