OOAD Overview

OOAD Overview - Obje Orie d Analysis And De ct nte sign Ove...

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

View Full Document Right Arrow Icon
1 Object Oriented Analysis And Design Object Oriented Analysis And Design Overview Overview
Background image of page 1

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

View Full DocumentRight Arrow Icon
CIS 554 2 What is an Object? A self-contained package, with specific variables (attributes) and methods (behaviors). An object stands alone. An object’s implementation is purposely hidden from us.
Background image of page 2
CIS 554 3 Visual representation of a software object What is an Object?
Background image of page 3

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

View Full DocumentRight Arrow Icon
CIS 554 4 A bicycle modeled as a software object What is an Object?
Background image of page 4
CIS 554 5 What is a Class? A class is a blueprint or prototype that defines the variables and the methods common to all objects of a certain kind.
Background image of page 5

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

View Full DocumentRight Arrow Icon
CIS 554 6 What is a Class? Class is an implementation of an abstract data type and so encapsulates both data and operations. Object is run-time instance of class. Classes just sit there, objects do the real work. Memory is allocated for Objects not for Classes.
Background image of page 6
CIS 554 7 What is a Message? The object to which the message is addressed (YourBicycle) The name of the method to perform (changeGears) Any parameters needed by the method (lowerGear)
Background image of page 7

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

View Full DocumentRight Arrow Icon
CIS 554 8 Example Object Description - provides time of day, and an audible indication of a user-defined time during the day Interface Inputs - time of day, alarm time Outputs - time of day, audible alarm Attributes hour hand, minute hand, second hand, bell Behaviors Increment hour, increment minute, increment second, sound bell
Background image of page 8
CIS 554 9 Key Object-Oriented Characteristics Encapsulation (Information Hiding) Attributes and behavior are rolled into the object, and hidden from the rest of us. Only thing exposed is the “public interface” Inheritance Creating one object from another, already defined object, adding to its capabilities and public interface. . Polymorphism Specific object behavior is determined within a run-time context. An object can “morph” itself based on the context in which it is currently used. Re-useable With very discrete and finite capabilities, objects can be used in other parts of the system, or within other systems.
Background image of page 9

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

View Full DocumentRight Arrow Icon
CIS 554 10 Clock Object How does our clock rate as an object? Encapsulation Provides hour, minutes and seconds, and an alarm. Do we know the mechanisms for incrementing hours, minutes and seconds? Sounding the alarm? Inheritance We can use our simple clock object to create additional, more complex objects requiring time. E.g., chronograph, washing machine timer controller, etc. Polymorphism Not applicable Re-usable Our clock can be used in thousands of applications as is. We can use it in any application that requires us to keep track of time, and alert us when a certain time has occurred.
Background image of page 10
CIS 554 11 What is OOAD? Object Oriented Analysis & Design is the art of developing systems based on
Background image of page 11

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

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

This note was uploaded on 02/25/2011 for the course CIS 554 taught by Professor Staff during the Spring '08 term at Syracuse.

Page1 / 42

OOAD Overview - Obje Orie d Analysis And De ct nte sign Ove...

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

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