06-object-oriented-concepts

06-object-oriented-concepts - Object-Oriented Concepts ISE...

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

View Full Document Right Arrow Icon
Object-Oriented Concepts ISE 208: Intermediate Programming SUNY at Stony Brook
Background image of page 1

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

View Full DocumentRight Arrow Icon
Modeling Information Model : simpliFed description Used to make decisions, make predictions, and simulate processes Models are an abstraction They reduce complexity by only considering relevant data
Background image of page 2
Models and Software Models are used to maintain information and answer queries about something We can implement models using software An object is a block of code that represents one element of a model Objects track information about some part of the problem
Background image of page 3

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

View Full DocumentRight Arrow Icon
Object-Oriented Programming An object-oriented program uses objects to model the problem domain (the things we have to work with) Objects are constructed from data and program code Topics to consider: Designing objects Implementing objects Advanced concepts: access modiFers and static
Background image of page 4
What is an Object, Anyway? Objects are a very natural way to view the world around us Ex. People, things, even non-physical stuff (i.e., a bank account) Objects are deFned in terms of attributes and behaviors Attribute: properties that an object has (e.g., eye color, height, weight) Behavior: actions that an object can perform (e.g., walk, speak, pick up) An object is an entity that contains both data and behavior
Background image of page 5

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

View Full DocumentRight Arrow Icon
Query: question to which an object can respond Queries are always directed to a specifc object, and answered by that object Answers are based on the object’s attributes Answers can take any Form: T/±, integer, etc. An object can only respond to pre-programmed
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/22/2011.

Page1 / 21

06-object-oriented-concepts - Object-Oriented Concepts ISE...

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

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