{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


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!
Background image of page 1

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

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

{[ snackBarMessage ]}