3-1the Basic Concepts
3-1the Basic Concepts
Orientated Systems
1
What is an object?
The most important concept in object-
orientated development
A representation of something in the
application domain about which we need
to store data to enable the system to
provide the required functionality.
2
More about objects
Every object belongs to a class
4
Object characteristics – behaviour
5
Object characteristics – state
7
Identification Of Objects
Many methodologists have their own
favorite approaches
VideoGame BoardGame
Accessory
11
Generating a Class Diagram from Flow of Events
Customer Flow of events:
customer
The customer enters
enters the store to buy astore
toy. It has
store
? to bebuy
a toy thattoy
his daughter likes and it must cost
less than 50 Euro. He
daughter
tries a videogame, which
enter() less than 50
uses a data glove videogame
and a head-mounted display. He
daughter
daughter likes it.
age
suitable
An assistant helps him. The suitability of the
Toy
* game depends on the age of the child. His
depends
daughter isage
only 3 years old. The assistant
price
buy() recommends another type of toy, namely a
like() boardgame. The customer buy the game and
leaves
type ofthe
toystore boardgame
videogame boardgame
Encapsulation
13
Encapsulation
Data inside an object is
surrounded by a
protective ring of
Operations operations
data The data is protected by
the operations that
encapsulate it.
14