(2) Object Oriented Programming Intro

(2) Object Oriented Programming Intro - Reading CMSC 132:...

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

View Full Document Right Arrow Icon
1 CMSC 132: Object-Oriented Programming II Object-Oriented Programming Intro Department of Computer Science University of Maryland, College Park Reading Read Section 1.2 in the Koffman text (not covered explicitly in the second edition, but only two pages, so these slides will suffice) 2 3 Object-oriented programming (OOP) Approach to improving software View software as a collection of objects (entities) Motivated by software engineering concerns To be discussed later in the semester OOP uses two techniques: Abstraction Encapsulation 4 Techniques – abstraction Abstraction Provide high-level model of activity or data Procedural abstraction Specify what actions should be performed Hide algorithms Data abstraction Specify data objects for problem Hide representation
Background image of page 1

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

View Full DocumentRight Arrow Icon
5 Techniques – encapsulation Encapsulation Confine information so it is only visible and accessible through an associated external interface Approach For some entity X in a program Abstract the data in X Abstract the actions on the data in X
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/16/2011 for the course CMSC 132 taught by Professor Padua-perez during the Fall '08 term at Maryland.

Page1 / 3

(2) Object Oriented Programming Intro - Reading CMSC 132:...

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

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