JPVNotes1-OOP

JPVNotes1-OOP - Click to edit Master subtitle style...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Click to edit Master subtitle style 6/22/2005 Introduction to Object-Oriented Programming Notes Supplement CS 1054 Introduction to Programming in Java Spring 2008 Introduction to Object-Oriented Programming Introduction to Object-Oriented Programming 21: Intro to OOP Object-Oriented Programming n The traditional definition of a program is: a sequence of instructions to be executed on a computer n In the Object-Oriented Programming (OOP) paradigm, a program that executes is a collection of interacting objects n In this paradigm, the programs we write/specify Introduction to Object-Oriented Programming Introduction to Object-Oriented Programming 31: Intro to OOP What is an Object? Definition: A thing that has type, identity, state, and behavior n type: belongs to a class of similar objects n identity : is a distinct instance of that class n state / attributes : has a set of properties (or fields) n each field has a value, that may be different per object of the same class n behavior : what the object knows how to do Introduction to Object-Oriented Programming Introduction to Object-Oriented Programming 41: Intro to OOP Examples of Objects n state/attributes n on (true or false) n behavior n switch on...
View Full Document

Page1 / 12

JPVNotes1-OOP - Click to edit Master subtitle style...

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

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