際際滷

際際滷Share a Scribd company logo
Object oriented programming OOP
Object Oriented Programming :
Why OOP ? 
1.It make code easily . 
2.Write code one time, dont repeat code . 
3.Ease of modification of the code .
OOP is using Biology !
悋 悋 悴悋惡 悋惺悸 悴惡 悋惡忰惘 !
Notice : 
1.Every thing is an object . 
2.Every object contains : 
Attributes 
Actions (methods) 
Ex: Person .
1. Attributes : 
Name = value ! 
Ex: 
Name= Ahmad 
Age = 21 
. 
. 
.
2. Actions (methods) 
Ex : 
Eat , walk , sleep ,,,,,,, 
Every thing the object had done called 
Action
Object (car) : 
Actions Attributes 
walk color 
Turn left model 
Turn right speed
Object oriented programming OOP
Deference between Class and Object : 
Class consist of : 
1. Actions . 
2. Attributes . 
But !!!! 
悋悋悋悋悋愕  悋悋愕悋悋悋悋悋悋悋愕
Object oriented programming OOP
Are you Understand !
Objects & Classes In Programming : 
Actions Attributes 
Methods variables
Object oriented programming OOP
Object oriented programming OOP

More Related Content

Object oriented programming OOP