SlideShare a Scribd company logo
1 of 16
Basic Concept of Object Oriented
Programming Language
Presented By:
Ms. Amritpal Kaur
Objects
Classes
Data Abstraction
Data Encapsulation
Data Hiding
Inheritance
Polymorphism
Binding
Message Passing
Course Outline
Objects are instance of a class, that interact with each
other at runtime. An object is an entity that has state,
behavior and identity. There are many objects around us.
E.g. A computer mouse is an object. Its states would be
its color, size and brand name and its behavior would be
left-click, right-click.
Objects
Class is a collection of similar objects or objects of same
type. Class is a way to bind the data and its associate
functions together. In the OOPs concept the variables
declared inside a class are known as "Data Members"
and the functions are known as "Member Functions".
By default all the elements of a class are private.
E.g. mango, apple and orange are members of class fruit.
Classes
There are three types of access specifiers are :
Private: The members declared as "private" can be
accessed only within the same class and not from
outside the class.
Public: The members declared as "public" are accessible
within the class as well as from outside the class.
Protected: The members declared as "protected" cannot
be accessed from outside the class, but can be accessed
from a derived class. This is used when inheritance is
applied to the members of a class.
Access Specifiers
Data Abstraction refers to the act of representing
essential features without including background details.
It is concerned with separating the behavior of a data
object from its representation.
E.g. Executable file of a program.
Data Abstraction
The process of binding the data members and functions
in a class is known as Data Encapsulation. By using
this concept data is not accessible to the outside world
and can access only those functions that are declared in
class.
Data Encapsulation
Data Hiding is the mechanism where details of the class
are hidden from the user. The user can perform only a
restricted set of operations in the hidden member of the
class. Data Hiding is similar to Data Encapsulation.
Data Hiding
Inheritance is a method by which new classes are
created from the existing classes. It inherits the
properties of base class into derived class.
Advantage is reusability of the code.
: symbol is used for inheriting a class.
Inheritance
Derived Class Visibility
Base Class
Visibility
Public
derivation
Private
derivation
Protected
derivation
Private Not inherited Not inherited Not inherited
Protected Protected Private Protected
Public Public Private Protected
The following table lists the visibility of the
base class members in the derived classes
Single Level Inheritance
Multiple Inheritance
Multilevel Inheritance
Hierarchical Inheritance
Hybrid Inheritance
Different types of inheritance in C++.
Polymorphism means ability to take more than one
form.
The process of making an operator to show different
behaviors in different instances is known as operator
overloading.
Using a single function name to perform different type
of task is known as function overloading.
Polymorphism
Binding refers to the linking of a procedure call to the
code to be executed in response to the call. There are
two types of binding:
Static Binding
Dynamic Binding
Binding
An Object Oriented program consists of a set of objects
that communicate with each other by sending and
receiving information much the same way as people
send messages to one another.
Message Passing
The message passing process involve
the following three steps:
Creating classes that define object and their behavior.
Creating objects from class definitions.
Establishing communication among objects.
Thanks

More Related Content

What's hot

Inner Classes & Multi Threading in JAVA
Inner Classes & Multi Threading in JAVAInner Classes & Multi Threading in JAVA
Inner Classes & Multi Threading in JAVA
Tech_MX
 

What's hot (19)

Understanding class, object & interface
Understanding class, object & interfaceUnderstanding class, object & interface
Understanding class, object & interface
 
Best C Sharp C# Training Online C# Online Course C# Online Training Best on...
Best C Sharp C# Training Online C# Online Course   C# Online Training Best on...Best C Sharp C# Training Online C# Online Course   C# Online Training Best on...
Best C Sharp C# Training Online C# Online Course C# Online Training Best on...
 
Interface in Java
Interface in JavaInterface in Java
Interface in Java
 
Access specifier
Access specifierAccess specifier
Access specifier
 
Nested classes in java
Nested classes in javaNested classes in java
Nested classes in java
 
Classes and objects
Classes and objectsClasses and objects
Classes and objects
 
[OOP - Lec 06] Classes and Objects
[OOP - Lec 06] Classes and Objects[OOP - Lec 06] Classes and Objects
[OOP - Lec 06] Classes and Objects
 
Friend function
Friend functionFriend function
Friend function
 
Session 1.2 high-precision, context-free entity linking exploiting unambigu...
Session 1.2   high-precision, context-free entity linking exploiting unambigu...Session 1.2   high-precision, context-free entity linking exploiting unambigu...
Session 1.2 high-precision, context-free entity linking exploiting unambigu...
 
Inner class
Inner classInner class
Inner class
 
Inner Classes & Multi Threading in JAVA
Inner Classes & Multi Threading in JAVAInner Classes & Multi Threading in JAVA
Inner Classes & Multi Threading in JAVA
 
Java- Nested Classes
Java- Nested ClassesJava- Nested Classes
Java- Nested Classes
 
Java Inner Class
Java Inner ClassJava Inner Class
Java Inner Class
 
Object oriented programming 6 oop with c++
Object oriented programming 6  oop with c++Object oriented programming 6  oop with c++
Object oriented programming 6 oop with c++
 
Object as function argument , friend and static function by shahzad younas
Object as function argument , friend and static function by shahzad younasObject as function argument , friend and static function by shahzad younas
Object as function argument , friend and static function by shahzad younas
 
OOPS Characteristics (With Examples in PHP)
OOPS Characteristics (With Examples in PHP)OOPS Characteristics (With Examples in PHP)
OOPS Characteristics (With Examples in PHP)
 
150950107056 2150704
150950107056 2150704150950107056 2150704
150950107056 2150704
 
C# Inheritance
C# InheritanceC# Inheritance
C# Inheritance
 
Java basics
Java basicsJava basics
Java basics
 

Similar to Oop

oops-123991513147-phpapp02.pdf
oops-123991513147-phpapp02.pdfoops-123991513147-phpapp02.pdf
oops-123991513147-phpapp02.pdf
ArpitaJana28
 
Use Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.pptUse Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.ppt
manishchoudhary91861
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
dheva B
 

Similar to Oop (20)

oops-123991513147-phpapp02.pdf
oops-123991513147-phpapp02.pdfoops-123991513147-phpapp02.pdf
oops-123991513147-phpapp02.pdf
 
Oops
OopsOops
Oops
 
Opp concept in c++
Opp concept in c++Opp concept in c++
Opp concept in c++
 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS
 
Oops concepts
Oops conceptsOops concepts
Oops concepts
 
Characteristics of oop
Characteristics of oopCharacteristics of oop
Characteristics of oop
 
Selenium Training .pptx
Selenium Training .pptxSelenium Training .pptx
Selenium Training .pptx
 
C++ programming introduction
C++ programming introductionC++ programming introduction
C++ programming introduction
 
Use Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.pptUse Classes with Object-Oriented Programming in C++.ppt
Use Classes with Object-Oriented Programming in C++.ppt
 
Ashish oot
Ashish ootAshish oot
Ashish oot
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
 
Inheritance
InheritanceInheritance
Inheritance
 
concept of oops
concept of oopsconcept of oops
concept of oops
 
Oops abap fundamental
Oops abap fundamentalOops abap fundamental
Oops abap fundamental
 
Lab 4 (1).pdf
Lab 4 (1).pdfLab 4 (1).pdf
Lab 4 (1).pdf
 
Object oriented programming CLASSES-AND-OBJECTS.pptx
Object oriented programming CLASSES-AND-OBJECTS.pptxObject oriented programming CLASSES-AND-OBJECTS.pptx
Object oriented programming CLASSES-AND-OBJECTS.pptx
 
Oops presentation java
Oops presentation javaOops presentation java
Oops presentation java
 
Abap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialsAbap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorials
 
oopsinvb-191021101327.pdf
oopsinvb-191021101327.pdfoopsinvb-191021101327.pdf
oopsinvb-191021101327.pdf
 
Oops in vb
Oops in vbOops in vb
Oops in vb
 

Recently uploaded

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 

Oop

  • 1. Basic Concept of Object Oriented Programming Language Presented By: Ms. Amritpal Kaur
  • 2. Objects Classes Data Abstraction Data Encapsulation Data Hiding Inheritance Polymorphism Binding Message Passing Course Outline
  • 3. Objects are instance of a class, that interact with each other at runtime. An object is an entity that has state, behavior and identity. There are many objects around us. E.g. A computer mouse is an object. Its states would be its color, size and brand name and its behavior would be left-click, right-click. Objects
  • 4. Class is a collection of similar objects or objects of same type. Class is a way to bind the data and its associate functions together. In the OOPs concept the variables declared inside a class are known as "Data Members" and the functions are known as "Member Functions". By default all the elements of a class are private. E.g. mango, apple and orange are members of class fruit. Classes
  • 5. There are three types of access specifiers are : Private: The members declared as "private" can be accessed only within the same class and not from outside the class. Public: The members declared as "public" are accessible within the class as well as from outside the class. Protected: The members declared as "protected" cannot be accessed from outside the class, but can be accessed from a derived class. This is used when inheritance is applied to the members of a class. Access Specifiers
  • 6. Data Abstraction refers to the act of representing essential features without including background details. It is concerned with separating the behavior of a data object from its representation. E.g. Executable file of a program. Data Abstraction
  • 7. The process of binding the data members and functions in a class is known as Data Encapsulation. By using this concept data is not accessible to the outside world and can access only those functions that are declared in class. Data Encapsulation
  • 8. Data Hiding is the mechanism where details of the class are hidden from the user. The user can perform only a restricted set of operations in the hidden member of the class. Data Hiding is similar to Data Encapsulation. Data Hiding
  • 9. Inheritance is a method by which new classes are created from the existing classes. It inherits the properties of base class into derived class. Advantage is reusability of the code. : symbol is used for inheriting a class. Inheritance
  • 10. Derived Class Visibility Base Class Visibility Public derivation Private derivation Protected derivation Private Not inherited Not inherited Not inherited Protected Protected Private Protected Public Public Private Protected The following table lists the visibility of the base class members in the derived classes
  • 11. Single Level Inheritance Multiple Inheritance Multilevel Inheritance Hierarchical Inheritance Hybrid Inheritance Different types of inheritance in C++.
  • 12. Polymorphism means ability to take more than one form. The process of making an operator to show different behaviors in different instances is known as operator overloading. Using a single function name to perform different type of task is known as function overloading. Polymorphism
  • 13. Binding refers to the linking of a procedure call to the code to be executed in response to the call. There are two types of binding: Static Binding Dynamic Binding Binding
  • 14. An Object Oriented program consists of a set of objects that communicate with each other by sending and receiving information much the same way as people send messages to one another. Message Passing
  • 15. The message passing process involve the following three steps: Creating classes that define object and their behavior. Creating objects from class definitions. Establishing communication among objects.