SlideShare a Scribd company logo
Presentation on OOP
(Object Oriented Programming)
Presented by
RD
• Aprogrammingparadigmthatisfocusedon objectsand
data
•asopposedtoactionsandlogic
•Objectsareidentifiedtomodelasystem
•Objectsaredesignedtointeractwitheach other
What is OOP ?
• C++
• Java
• C#
• Java
• Visual Basic .NET
(VB.NET)
• Objective C
• PHP 5
• Python
• JavaScript
• Smalltalk
• Theta
• etc
Some OOP Languages
Basic Concept Of Object Oriented
Programming
Objects
Classes
Data Abstraction
Encapsulation
Inheritance
Polymorphism
Dynamic Binding
Message Passing
• They may represent a person, a place or any item
that the program must handle.
• Objects are the basic run-time entities in an object-
oriented system An object is entity that has state,
behavior and identity . there are many.
• Every object is associated with data and functions
which define meaningful operations on that object.
• Object is a real world existing entity.
• Object is an Instance of a particular class.
Objects
Example
Mouse is
object
Behavior
Left
Click
Scrolling
Right
Click
• A class is an entity that helps the programmer to
define a new complex data type. A class defines
the data and behavior of object . In simple words ,
a class is a collection of object of similar type.
• Classes are user -defined data types and it
behaves like built in types of programming.
• objects are variables of class.
• Once A class has been defined we can create any
number of objects for that class.
Class Fruit
StrawberryPineappleBanana Apple
:
“A data abstraction is a simplified view of an
object that includes only features one is
interested in while hides away the
unnecessary details.”
“Data abstraction becomes an abstract data
type (ADT)or a user-defined type.”
Data Abstraction
Example
Program Execution
Hiding Of Data
And Its
Background
Detail
Output
Encapsulation
• Encapsulation is the first pillar or principal
of object oriented programming.
• In simple words, "encapsulation is a process of
binding data members(variable, properties)and
member function(methods)into a single unit”
•And class is the best example of encapsulation.
Object oriented programming concepts
Encapsulation
Class: student
Attributes: st_name, st_id,
(Data) branch, semester
Functions: Enroll()
Displayinfo()
Result()
Performance()
Inheritance
•The mechanism of deriving a new class from an old
class is called inheritance or derivation.
•“Inheritance is the mechanism to provides the
power of reusability and extendibility.”
•“Inheritance is the process by which one object
can acquire the properties of another object.”
•The old class is known as base class while new
class is known as derived class or sub class
Example
Inheritance
Point
Line
Parent class
Or
Base class
Child class
Or
Derived
class
• Polymorphism is an important object oriented
programming concept. This is a Greek term, means the
ability to take more than one form.
Polymorphism
For Example
plus '+' is used to make sum of two number as well as
it is used to combine two strings.
Operator ‘+’
5+5=10 ‘in’+’dia’=india
Dynamic Binding
•Binding means link between procedure call and code
to be execute.
• It is the process of linking of a function call to the
actual code of the function at run-time.
•That is, in dynamic binding, the actual code to be
executed is not known to the compiler until run-time.
•It is also known late binding.
Massage Passing
• Objects can communicate with each others by passing
massage same as passing massage with each other.
• Objects can send or receive message or information.
• Message passing involves the following basic steps:
-Creating classes that define objects and their behavior.
-Creating objects from class definitions.
-Establishing communication among objects.
consider two classes product and order. the object
of the product class can communicate with the
order class by sending a request for placing order.
Example
order. place_order(qty_in_hand):
Object name
Function or
massage Information
(Optional)
Object :order1
Massage
passing
Order_place (int q)
{
}
Message Passing
FacultyObjectStudentObject
MgmtObject Performance
Result
Performance
Thank you

More Related Content

What's hot (20)

PPTX
Polymorphism in c++(ppt)
Sanjit Shaw
 
PPT
Object Oriented Programming In .Net
Greg Sohl
 
PPTX
Type conversion
PreethaPreetha5
 
PPTX
Introduction to object oriented language
farhan amjad
 
PPTX
Object oriented programming
Amit Soni (CTFL)
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PPT
Java access modifiers
Srinivas Reddy
 
PPTX
Classes and objects
rajveer_Pannu
 
PPTX
Super keyword in java
Hitesh Kumar
 
PPTX
Polymorphism presentation in java
Ahsan Raja
 
PPTX
Inner class
Guna Sekaran
 
PPTX
Friend function & friend class
Abhishek Wadhwa
 
PPTX
Object Oriented Programming Using C++
Muhammad Waqas
 
PPTX
[OOP - Lec 09,10,11] Class Members & their Accessing
Muhammad Hammad Waseem
 
PPTX
Strings in Java
Abhilash Nair
 
PPTX
Need of object oriented programming
Amar Jukuntla
 
PPTX
concept of oops
prince sharma
 
PPTX
Static keyword ppt
Vinod Kumar
 
PPT
Function overloading(c++)
Ritika Sharma
 
PPT
Class and object in C++
rprajat007
 
Polymorphism in c++(ppt)
Sanjit Shaw
 
Object Oriented Programming In .Net
Greg Sohl
 
Type conversion
PreethaPreetha5
 
Introduction to object oriented language
farhan amjad
 
Object oriented programming
Amit Soni (CTFL)
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Java access modifiers
Srinivas Reddy
 
Classes and objects
rajveer_Pannu
 
Super keyword in java
Hitesh Kumar
 
Polymorphism presentation in java
Ahsan Raja
 
Inner class
Guna Sekaran
 
Friend function & friend class
Abhishek Wadhwa
 
Object Oriented Programming Using C++
Muhammad Waqas
 
[OOP - Lec 09,10,11] Class Members & their Accessing
Muhammad Hammad Waseem
 
Strings in Java
Abhilash Nair
 
Need of object oriented programming
Amar Jukuntla
 
concept of oops
prince sharma
 
Static keyword ppt
Vinod Kumar
 
Function overloading(c++)
Ritika Sharma
 
Class and object in C++
rprajat007
 

Viewers also liked (8)

DOC
Nws2
shulenina_nv
 
PPTX
3 jornada
MandyYarenny
 
PPT
6 personal-perspectives-screen
Brian Jackson
 
DOC
Psy21 2005
shulenina_nv
 
PDF
в малом индустриальном городе россия
shulenina_nv
 
PPTX
Guion de Observacion 4
MandyYarenny
 
PDF
европейский опыт решения экологических проблем на межгосударственном уровне
shulenina_nv
 
DOCX
Resume dewi prilanti 2015 updated 210915
Dewi Prilanti
 
3 jornada
MandyYarenny
 
6 personal-perspectives-screen
Brian Jackson
 
Psy21 2005
shulenina_nv
 
в малом индустриальном городе россия
shulenina_nv
 
Guion de Observacion 4
MandyYarenny
 
европейский опыт решения экологических проблем на межгосударственном уровне
shulenina_nv
 
Resume dewi prilanti 2015 updated 210915
Dewi Prilanti
 
Ad

Similar to Object oriented programming concepts (20)

PPTX
OOP Lesson 2.pptx
FranzLawrenzDeTorres1
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
Chapter 04 object oriented programming
Praveen M Jigajinni
 
PPTX
Object Oriented Programming Concepts Using C++
Mtnc BCA DEPARTMENT
 
PPTX
introduction of Object oriented programming
RiturajJain8
 
PPTX
Characteristics of oop
Rasim Izhar Ali
 
PPTX
Object Oriented Programming fundamentals.pptx
sanaiftikhar23
 
PPTX
Concepts of oop1
SheetalPareek
 
PPTX
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
PPTX
Object Oriented Programming Language is an oop
sanaiftikhar23
 
PDF
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
PPTX
Basic concept of oops
Padma Kannan
 
PPTX
Introduction to OOP concepts
Ahmed Farag
 
PPTX
PPT_Object Oriented Programming .pptx
MDFARHAN3070
 
PPTX
PPT_Object Oriented Programming (2).pptx
faizus786
 
PPTX
Basic Concepts of Object Oriented Programming using C++
ShivamPathak318367
 
PDF
Programming Laboratory Unit 1.pdf
swapnilslide2019
 
PPTX
object oriented programing lecture 1
Geophery sanga
 
OOP Lesson 2.pptx
FranzLawrenzDeTorres1
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Chapter 04 object oriented programming
Praveen M Jigajinni
 
Object Oriented Programming Concepts Using C++
Mtnc BCA DEPARTMENT
 
introduction of Object oriented programming
RiturajJain8
 
Characteristics of oop
Rasim Izhar Ali
 
Object Oriented Programming fundamentals.pptx
sanaiftikhar23
 
Concepts of oop1
SheetalPareek
 
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
Object Oriented Programming Language is an oop
sanaiftikhar23
 
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
Basic concept of oops
Padma Kannan
 
Introduction to OOP concepts
Ahmed Farag
 
PPT_Object Oriented Programming .pptx
MDFARHAN3070
 
PPT_Object Oriented Programming (2).pptx
faizus786
 
Basic Concepts of Object Oriented Programming using C++
ShivamPathak318367
 
Programming Laboratory Unit 1.pdf
swapnilslide2019
 
object oriented programing lecture 1
Geophery sanga
 
Ad

Recently uploaded (20)

PPTX
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
PDF
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PPTX
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
PDF
Digital water marking system project report
Kamal Acharya
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PPTX
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
PPTX
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
UNIT 1 - INTRODUCTION TO AI and AI tools and basic concept
gokuld13012005
 
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
PPT
Testing and final inspection of a solar PV system
MuhammadSanni2
 
PPTX
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Mechanical Design of shell and tube heat exchangers as per ASME Sec VIII Divi...
shahveer210504
 
mbse_An_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
Digital water marking system project report
Kamal Acharya
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
Distribution reservoir and service storage pptx
dhanashree78
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
UNIT 1 - INTRODUCTION TO AI and AI tools and basic concept
gokuld13012005
 
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Reasons for the succes of MENARD PRESSUREMETER.pdf
majdiamz
 
Testing and final inspection of a solar PV system
MuhammadSanni2
 
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 

Object oriented programming concepts

  • 1. Presentation on OOP (Object Oriented Programming) Presented by RD
  • 3. • C++ • Java • C# • Java • Visual Basic .NET (VB.NET) • Objective C • PHP 5 • Python • JavaScript • Smalltalk • Theta • etc Some OOP Languages
  • 4. Basic Concept Of Object Oriented Programming Objects Classes Data Abstraction Encapsulation Inheritance Polymorphism Dynamic Binding Message Passing
  • 5. • They may represent a person, a place or any item that the program must handle. • Objects are the basic run-time entities in an object- oriented system An object is entity that has state, behavior and identity . there are many. • Every object is associated with data and functions which define meaningful operations on that object. • Object is a real world existing entity. • Object is an Instance of a particular class. Objects
  • 8. • A class is an entity that helps the programmer to define a new complex data type. A class defines the data and behavior of object . In simple words , a class is a collection of object of similar type. • Classes are user -defined data types and it behaves like built in types of programming. • objects are variables of class. • Once A class has been defined we can create any number of objects for that class.
  • 10. “A data abstraction is a simplified view of an object that includes only features one is interested in while hides away the unnecessary details.” “Data abstraction becomes an abstract data type (ADT)or a user-defined type.” Data Abstraction
  • 11. Example Program Execution Hiding Of Data And Its Background Detail Output
  • 12. Encapsulation • Encapsulation is the first pillar or principal of object oriented programming. • In simple words, "encapsulation is a process of binding data members(variable, properties)and member function(methods)into a single unit” •And class is the best example of encapsulation.
  • 14. Encapsulation Class: student Attributes: st_name, st_id, (Data) branch, semester Functions: Enroll() Displayinfo() Result() Performance()
  • 15. Inheritance •The mechanism of deriving a new class from an old class is called inheritance or derivation. •“Inheritance is the mechanism to provides the power of reusability and extendibility.” •“Inheritance is the process by which one object can acquire the properties of another object.” •The old class is known as base class while new class is known as derived class or sub class
  • 18. • Polymorphism is an important object oriented programming concept. This is a Greek term, means the ability to take more than one form. Polymorphism
  • 19. For Example plus '+' is used to make sum of two number as well as it is used to combine two strings. Operator ‘+’ 5+5=10 ‘in’+’dia’=india
  • 20. Dynamic Binding •Binding means link between procedure call and code to be execute. • It is the process of linking of a function call to the actual code of the function at run-time. •That is, in dynamic binding, the actual code to be executed is not known to the compiler until run-time. •It is also known late binding.
  • 21. Massage Passing • Objects can communicate with each others by passing massage same as passing massage with each other. • Objects can send or receive message or information. • Message passing involves the following basic steps: -Creating classes that define objects and their behavior. -Creating objects from class definitions. -Establishing communication among objects.
  • 22. consider two classes product and order. the object of the product class can communicate with the order class by sending a request for placing order. Example order. place_order(qty_in_hand): Object name Function or massage Information (Optional) Object :order1 Massage passing Order_place (int q) { }