0% found this document useful (0 votes)
14 views13 pages

Topic 1

Object-orientation (OO) is a modeling technique that represents a system using interacting objects. An OO model consists of objects that represent real-world entities like people, places, and things. An object has attributes that define its state, operations that define its behavior, and a unique identity. OO modeling is advantageous because it maps closely to how people think about and understand the real world in terms of objects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views13 pages

Topic 1

Object-orientation (OO) is a modeling technique that represents a system using interacting objects. An OO model consists of objects that represent real-world entities like people, places, and things. An object has attributes that define its state, operations that define its behavior, and a unique identity. OO modeling is advantageous because it maps closely to how people think about and understand the real world in terms of objects.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Object-Orientation (OO)

What is Object-
Orientation?
A technique for system modeling

OO model consists of several interacting


objects
What is a Model?
A model is an abstraction of something

Purpose is to understand the product before


developing it
Examples Model
Highway maps

Architectural models

Mechanical models
Example OO Model
Example OO lives-
Model
Ali in
House
Objects
Ali drives
House
Car
Tree
Car Tree
Interactions
Ali lives in the house
Ali drives the car
Object-Orientation -
Advantages
People think in terms of objects

OO models map to reality

Therefore, OO models are


easy to develop
easy to understand
What is an Object?
An object is

Something tangible (Ali, Car)

Something that can be apprehended


intellectually (Time, Date)
What is an Object?
An object has

State (attributes)
Well-defined behaviour (operations)
Unique identity
Example Ali is a Tangible
Object
State (attributes)
Name
Age
behaviour (operations)
Walks
Eats
Identity
His name
Example Car is a Tangible
Object
State (attributes)
- Color
- Model
behaviour (operations)
- Accelerate - Start Car
- Change Gear
Identity
- Its registration number
Example Time is an Object
Apprehended
State (attributes)
Intellectually
- Hours - Seconds
- Minutes
behaviour (operations)
- Set Hours - Set Seconds
- Set Minutes
Identity
- Would have a unique ID in the model
Example Date is an Object
Apprehended Intellectually
State (attributes)
Year - Day
Month
behaviour (operations)
- Set Year - Set Day
- Set Month
Identity
- Would have a unique ID in the model

You might also like