03-ObjectsAndEncapsulation - 02/02/2011 CS/ENGRD 2110...

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

View Full Document Right Arrow Icon
02/02/2011 1 CS/ENGRD 2110 Object-Oriented Programming and Data Structures Spring 2010 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/17/2011 for the course CS 2110 taught by Professor Francis during the Spring '07 term at Cornell University (Engineering School).

Page1 / 2

03-ObjectsAndEncapsulation - 02/02/2011 CS/ENGRD 2110...

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