SlideShare a Scribd company logo
1 of 23
ARYA COLLEGE OF ENGINEERING & I.T.
Object Oriented
Concept
Submitted by: Dhiraj Kumar
Class: ECE-A
Roll no. : 12EAREC052
Submitted to:
Dr. Kirti Vyas
Introduction :
We can define “object oriented programing as an
approach that provides a way of modularizing
programs by creating partitioned memory area for
both data and functions that can be used as a template
for creating copies of such modules on demand”.
OOP Concepts
• Class.
• Object.
• Instance.
• State.
• Method.
• Encapsulation.
• Inheritance.
• Polymorphism.
Class
• A class is an abstract definition of an object.
• Defines how would the object look like when created.
• The object type.
• Think of classes like the patents of actual inventions.
OO Concepts - Abdalla Mahmoud
Classes
Car Human
OO Concepts - Abdalla Mahmoud
Classes2
ManSuzuki
WomanBMW
Object
• An object is the actual entity instance lives in memory and
capable of doing real operations.
• Created (instantiated) according to the abstract definition of a
class.
• Think of objects like some invention created according to
some patent.
OO Concepts - Abdalla Mahmoud
Objects
Object and Their Interaction
Program
Object and Their Interaction
Program
Tom, hold your sweep!
Object and Their Interaction
Program
Tom, hold your sweep!
Tom, beat jerry!
Object and Their Interaction
Program
Tom.holdYourSweep()
Tom.BeatJerry()
IN PROGRAMMING
Object and Their Interaction
Program
Tom.holdYourSweep()
Tom.BeatJerry()
IN PROGRAMMING
message
Object and Their Interaction
Program
Tom.holdYourSweep()
Tom.BeatJerry()
IN PROGRAMMING
message
message
Object vs. Class
• Object
• Class
State
• The value of an attribute (variable) of the object.
• Describes some object’s characteristics.
• Ex: Car.color = red
• Adjectives.
Method
• An object’s ability to do some operation.
• Implements some functionality.
• Invoked by the same object or other interacting objects in the
system.
• Ex: car.accelerate()
• Verbs.
Message Passing
• The process by which an object:
– Sends data to another object.
– Asks the other object to invoke a
method.
• In other words, objects talk to each others
via messages.
Encapsulation
• Packaging an object's variables within the protective custody
of its methods is called encapsulation.
• Often, for practical reasons, an object may wish to expose
some of its variables or hide some of its methods.
• Access Levels:
Inheritance
• A class inherits state and behavior from its superclass.
Inheritance provides a powerful and natural mechanism for
organizing and structuring software programs.
Super Class
Subclasses
OO Concepts - Abdalla Mahmoud
Abstraction & Inheritance
Man
Suzuki
Woman
BMW
Car Human
Polymorphism
• Different objects share the same interface (e.g: same method
names).
• Different functionalities /implementations.
• One object may have several interfaces.
• One object can be treated as if it’s an instance from several
types (classes).
power poitnt of oops

More Related Content

What's hot

Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
daxesh chauhan
 
Introduction to object oriented programming
Introduction to object oriented programmingIntroduction to object oriented programming
Introduction to object oriented programming
Abzetdin Adamov
 
Classes And Objects
Classes And ObjectsClasses And Objects
Classes And Objects
rahulsahay19
 

What's hot (20)

Java
JavaJava
Java
 
OOP
OOPOOP
OOP
 
Object Oriented Programming Principles
Object Oriented Programming PrinciplesObject Oriented Programming Principles
Object Oriented Programming Principles
 
OOPS Characteristics
OOPS CharacteristicsOOPS Characteristics
OOPS Characteristics
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
Oo ps concepts in c++
Oo ps concepts in c++Oo ps concepts in c++
Oo ps concepts in c++
 
General oops concepts
General oops conceptsGeneral oops concepts
General oops concepts
 
Oops
OopsOops
Oops
 
Introduction to object oriented programming
Introduction to object oriented programmingIntroduction to object oriented programming
Introduction to object oriented programming
 
Oop ppt
Oop pptOop ppt
Oop ppt
 
Characteristics of oop
Characteristics of oopCharacteristics of oop
Characteristics of oop
 
PHP - Procedural To Object-Oriented
PHP - Procedural To Object-OrientedPHP - Procedural To Object-Oriented
PHP - Procedural To Object-Oriented
 
Classes And Objects
Classes And ObjectsClasses And Objects
Classes And Objects
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Ah java-ppt2
Ah java-ppt2Ah java-ppt2
Ah java-ppt2
 
OOPs concept and implementation
OOPs concept and implementationOOPs concept and implementation
OOPs concept and implementation
 
Java is an Object-Oriented Language
Java is an Object-Oriented LanguageJava is an Object-Oriented Language
Java is an Object-Oriented Language
 
Java programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- InheritanceJava programming -Object-Oriented Thinking- Inheritance
Java programming -Object-Oriented Thinking- Inheritance
 
Fundamentals of OOP (Object Oriented Programming)
Fundamentals of OOP (Object Oriented Programming)Fundamentals of OOP (Object Oriented Programming)
Fundamentals of OOP (Object Oriented Programming)
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 

Similar to power poitnt of oops

Object Modelling Technique " ooad "
Object Modelling Technique  " ooad "Object Modelling Technique  " ooad "
Object Modelling Technique " ooad "
AchrafJbr
 
8 oo approach&uml-23_feb
8 oo approach&uml-23_feb8 oo approach&uml-23_feb
8 oo approach&uml-23_feb
Raj Shah
 

Similar to power poitnt of oops (20)

Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
object oriented programing lecture 1
object oriented programing lecture 1object oriented programing lecture 1
object oriented programing lecture 1
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
OOSD1-unit1_1_16_09.pptx
OOSD1-unit1_1_16_09.pptxOOSD1-unit1_1_16_09.pptx
OOSD1-unit1_1_16_09.pptx
 
Object Modelling Technique " ooad "
Object Modelling Technique  " ooad "Object Modelling Technique  " ooad "
Object Modelling Technique " ooad "
 
OOP Presentation.pptx
OOP Presentation.pptxOOP Presentation.pptx
OOP Presentation.pptx
 
OOP Presentation.pptx
OOP Presentation.pptxOOP Presentation.pptx
OOP Presentation.pptx
 
8 oo approach&uml-23_feb
8 oo approach&uml-23_feb8 oo approach&uml-23_feb
8 oo approach&uml-23_feb
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
Object Oriented Programming Tutorial.pptx
Object Oriented Programming Tutorial.pptxObject Oriented Programming Tutorial.pptx
Object Oriented Programming Tutorial.pptx
 
C# by Zaheer Abbas Aghani
C# by Zaheer Abbas AghaniC# by Zaheer Abbas Aghani
C# by Zaheer Abbas Aghani
 
C# by Zaheer Abbas Aghani
C# by Zaheer Abbas AghaniC# by Zaheer Abbas Aghani
C# by Zaheer Abbas Aghani
 
Handout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and DesignHandout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and Design
 
L1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdfL1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdf
 
OOP intro.ppt
OOP intro.pptOOP intro.ppt
OOP intro.ppt
 
java - oop's in depth journey
java - oop's in depth journeyjava - oop's in depth journey
java - oop's in depth journey
 
ppt_ooad.pdf
ppt_ooad.pdfppt_ooad.pdf
ppt_ooad.pdf
 
Software Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-iSoftware Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-i
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
80410172053.pdf
80410172053.pdf80410172053.pdf
80410172053.pdf
 

power poitnt of oops

  • 1. ARYA COLLEGE OF ENGINEERING & I.T. Object Oriented Concept Submitted by: Dhiraj Kumar Class: ECE-A Roll no. : 12EAREC052 Submitted to: Dr. Kirti Vyas
  • 2. Introduction : We can define “object oriented programing as an approach that provides a way of modularizing programs by creating partitioned memory area for both data and functions that can be used as a template for creating copies of such modules on demand”.
  • 3. OOP Concepts • Class. • Object. • Instance. • State. • Method. • Encapsulation. • Inheritance. • Polymorphism.
  • 4. Class • A class is an abstract definition of an object. • Defines how would the object look like when created. • The object type. • Think of classes like the patents of actual inventions.
  • 5. OO Concepts - Abdalla Mahmoud Classes Car Human
  • 6. OO Concepts - Abdalla Mahmoud Classes2 ManSuzuki WomanBMW
  • 7. Object • An object is the actual entity instance lives in memory and capable of doing real operations. • Created (instantiated) according to the abstract definition of a class. • Think of objects like some invention created according to some patent.
  • 8. OO Concepts - Abdalla Mahmoud Objects
  • 9. Object and Their Interaction Program
  • 10. Object and Their Interaction Program Tom, hold your sweep!
  • 11. Object and Their Interaction Program Tom, hold your sweep! Tom, beat jerry!
  • 12. Object and Their Interaction Program Tom.holdYourSweep() Tom.BeatJerry() IN PROGRAMMING
  • 13. Object and Their Interaction Program Tom.holdYourSweep() Tom.BeatJerry() IN PROGRAMMING message
  • 14. Object and Their Interaction Program Tom.holdYourSweep() Tom.BeatJerry() IN PROGRAMMING message message
  • 15. Object vs. Class • Object • Class
  • 16. State • The value of an attribute (variable) of the object. • Describes some object’s characteristics. • Ex: Car.color = red • Adjectives.
  • 17. Method • An object’s ability to do some operation. • Implements some functionality. • Invoked by the same object or other interacting objects in the system. • Ex: car.accelerate() • Verbs.
  • 18. Message Passing • The process by which an object: – Sends data to another object. – Asks the other object to invoke a method. • In other words, objects talk to each others via messages.
  • 19. Encapsulation • Packaging an object's variables within the protective custody of its methods is called encapsulation. • Often, for practical reasons, an object may wish to expose some of its variables or hide some of its methods. • Access Levels:
  • 20. Inheritance • A class inherits state and behavior from its superclass. Inheritance provides a powerful and natural mechanism for organizing and structuring software programs. Super Class Subclasses
  • 21. OO Concepts - Abdalla Mahmoud Abstraction & Inheritance Man Suzuki Woman BMW Car Human
  • 22. Polymorphism • Different objects share the same interface (e.g: same method names). • Different functionalities /implementations. • One object may have several interfaces. • One object can be treated as if it’s an instance from several types (classes).

Editor's Notes

  1. Abdalla mahmoud
  2. Abdalla mahmoud
  3. Abdalla mahmoud
  4. Abdalla mahmoud
  5. Abdalla mahmoud
  6. Abdalla mahmoud