03-ObjectsAndEncapsulation

03-ObjectsAndEncapsulation - CS/ENGRD 2110 Object-Oriented...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
15/06/2011 1 CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2011 Thorsten Joachims Lecture 3: Objects and Encapsulation In the Beginning… Goal: Build a search engine! What do we need? Robot that crawls all web pages A retrieval engine that finds the best matches for a query. A web server that gets keyword queries from the user and presents search results. Break problem down into modules. Modularity Examples: Tires in a car (standard size, many vendors) External keyboard for computer Course at Cornell ... Delegate responsibility for individual modules How does Java support modularity? Classes and Objects Contain data Contain methods for accessing data Inheritance avoids duplication of effort Interfaces Standardization across multiple classes Packages Collections of classes and interfaces Information Hiding Modules hide internal design decisions! Modules provide a well-defined external
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/05/2011 for the course CS 211 taught by Professor Staff during the Spring '08 term at Cornell.

Page1 / 2

03-ObjectsAndEncapsulation - CS/ENGRD 2110 Object-Oriented...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online