object in computer science

Telechargé par chiraz.khelia
Object in
Computer science
Computer Science
Project
College pilote Mégrine
2019 -2020
Realised by :
Mayssa Koubâa
1
1
PLAN
What is an object ?
How do objects collaborate ?
What criteria allow as to classify
something as an object?
1
2
3
2
What is an object ?
1
Something you can do things to” (G. Booch)
variable
variable
variable
An object = an entity that has its state and behavior
- The object maintains its state in one or more variables
Variable = a data named by an identifier
- The object implements its behavior by the methods
Method = a function associated with an object
State (variables)
An object is an IT entity that includes variables and methods
Behavior (methods)
The variables form a core of the object and the methods form an envelope that surrounds the
kernel and hides it to other objects in the program 3
What is an object ?
1
Dog modeled as computer object
- Dog with the state defined by its
name, color, race, position, ...
and behavior as: sitting, couch,
brings, barks ...
- Bike with the state defined by its number
of speeds, current speed, color, ...
and behavior as: accelerates, changes the
speed ...
slows
accelerate
Nb speeds
current speed
color
Change
speed
Sits
name
color
Position
Lies brings
Examples of real world objects
Bike modeled as computer object
4
1
PLAN
What is an object ?
How do objects collaborate ?
1
2
3What criteria allow as to classify
something as an object?
5
1 / 9 100%

object in computer science

Telechargé par chiraz.khelia
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !