lecture29bw - LECTURE 29 Procedural Programming The design...

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

View Full Document Right Arrow Icon
LECTURE 29 bject- riented Programming Object Oriented Programming lasses & Objects Classes E7, Fall 2008, M. Frenklach 1 Procedural Programming The design focuses on steps that must be xecuted to achieve a desired state. executed to achieve a desired state. One typically represents data as individual ariables or fields of a structure and variables or fields of a structure and implement operations as functions that take the variables as arguments. g Programs usually call a sequence of nctions each one of which is passed data functions, each one of which is passed data, and then returns modified data. Each function performs an operation or perhaps many operations on the data. 2 Object-Oriented Design efines bjects that: defines objects, that: organize (systematize) data define methods (functions) link data and methods protect data ide implementation (complexity) hide implementation (complexity) 3 Object-Oriented Design A class describes a set of objects with common characteristics. Objects are specific instances of a class. The values contained in an object’s properties are what make an object different from other objects of the same lass class. The functions defined by the class (called methods) are what implement object behaviors that are common to all objects of class (you can add two doubles a class (you can add two doubles regardless of their values).
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 11/01/2009 for the course ENGLISH 7 taught by Professor Sengupta during the Spring '09 term at University of California, Berkeley.

Page1 / 4

lecture29bw - LECTURE 29 Procedural Programming The design...

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