SlideShare a Scribd company logo
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

Understanding class, object & interface
Understanding class, object & interfaceUnderstanding class, object & interface
Understanding class, object & interface
MD. Shohag Mia
 
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...
Evanta Technologies
 
Interface in Java
Interface in JavaInterface in Java
Interface in Java
Ducat India
 
Access specifier
Access specifierAccess specifier
Access specifier
zindadili
 
Nested classes in java
Nested classes in javaNested classes in java
Nested classes in java
Richa Singh
 
[OOP - Lec 06] Classes and Objects
[OOP - Lec 06] Classes and Objects[OOP - Lec 06] Classes and Objects
[OOP - Lec 06] Classes and Objects
Muhammad Hammad Waseem
 
Friend function
Friend functionFriend function
Friend function
Heet Patel
 
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...
semanticsconference
 
Inner Classes & Multi Threading in JAVA
Inner Classes & Multi Threading in JAVAInner Classes & Multi Threading in JAVA
Inner Classes & Multi Threading in JAVATech_MX
 
Java Inner Class
Java Inner ClassJava Inner Class
Java Inner Class
DeeptiJava
 
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++
Vaibhav Khanna
 
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
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)
baabtra.com - No. 1 supplier of quality freshers
 
150950107056 2150704
150950107056 2150704150950107056 2150704
150950107056 2150704
Prashant Mokani
 
C# Inheritance
C# InheritanceC# Inheritance
C# Inheritance
Prem Kumar Badri
 
Java basics
Java basicsJava basics
Java basics
Ayshwarya Baburam
 

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
 
Opp concept in c++
Opp concept in c++Opp concept in c++
Opp concept in c++
SadiqullahGhani1
 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS
abhishek kumar
 
Oops concepts
Oops conceptsOops concepts
Oops concepts
ACCESS Health Digital
 
Selenium Training .pptx
Selenium Training .pptxSelenium Training .pptx
Selenium Training .pptx
SajidTk2
 
C++ programming introduction
C++ programming introductionC++ programming introduction
C++ programming introduction
sandeep54552
 
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 Languagedheva B
 
Inheritance
InheritanceInheritance
Inheritance
Munsif Ullah
 
concept of oops
concept of oopsconcept of oops
concept of oops
prince sharma
 
Oops abap fundamental
Oops abap fundamentalOops abap fundamental
Oops abap fundamental
biswajit2015
 
Lab 4 (1).pdf
Lab 4 (1).pdfLab 4 (1).pdf
Lab 4 (1).pdf
MohammedAlobaidy16
 
CHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java languageCHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java language
TSha7
 
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
DaveEstonilo
 
Oops presentation java
Oops presentation javaOops presentation java
Oops presentation java
JayasankarPR2
 
Abap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialsAbap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorials
cesarmendez78
 
oopsinvb-191021101327.pdf
oopsinvb-191021101327.pdfoopsinvb-191021101327.pdf
oopsinvb-191021101327.pdf
JP Chicano
 

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
 
CHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java languageCHAPTER 3 oop with programming java language
CHAPTER 3 oop with programming java language
 
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
 

Recently uploaded

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 

Recently uploaded (20)

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 

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.