SlideShare a Scribd company logo
3
Most read
4
Most read
5
Most read
INHERITANCEOBJECT ORIENTED PROGRAMMING
INDEX
 Introduction
 Derived class
 visibility modes
 Types of inheritance
 Virtual base class
 Constructors in derived classes
INHERITANCE
 The mechanism of deriving a new class from an old
class is called inheritance.
 The old class is referred as base class and new
one is called as derived class.
 A new class inherits some or all properties from the
base class.
 Inheritance enables reusability.
TYPES OF INHERITANCE
A
B A
B
C
A
B C D
C
A B
SINGLE
INHERITANCE
MULTILEVEL
INHERITANCE
MULTIPLE
INHERITANCE
HIERARCHICAL
INHERITANCE
 Single inheritance: a derived class with only one
base class is called single inheritance.
 Multiple inheritance: a derived class with several
base classes is multiple inheritance.
 Multilevel inheritance: the mechanism of deriving a
class from another derived class is known as
multilevel inheritance.
 Hiererchical inheritance: one class may be inherited
by more than one class is known as hierarchical
inheritance.
TYPES OF INHERITANCE

More Related Content

What's hot (20)

PPTX
Inheritance in oops
Hirra Sultan
 
PPTX
Inheritance in c++
Paumil Patel
 
PPTX
Polymorphism in c++(ppt)
Sanjit Shaw
 
PPTX
Inheritance in c++
Vineeta Garg
 
PPT
Operator overloading in C++
BalajiGovindan5
 
PPTX
Inheritance in JAVA PPT
Pooja Jaiswal
 
PPT
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
PPT
Final keyword in java
Lovely Professional University
 
PPTX
Inheritance
Sapna Sharma
 
PPTX
Inheritance in java
Tech_MX
 
PPTX
Inheritance in java
RahulAnanda1
 
PPSX
Inheritance
Selvin Josy Bai Somu
 
PPTX
Multiple inheritance in c++
Sujan Mia
 
PPTX
inheritance c++
Muraleedhar Sundararajan
 
PDF
Inheritance In Java
Arnab Bhaumik
 
PPTX
Polymorphism
Nochiketa Chakraborty
 
PPTX
classes and objects in C++
HalaiHansaika
 
PPTX
Inheritance in c++
Vishal Patil
 
PDF
Class and Objects in Java
Spotle.ai
 
PPTX
Visibility control in java
Tech_MX
 
Inheritance in oops
Hirra Sultan
 
Inheritance in c++
Paumil Patel
 
Polymorphism in c++(ppt)
Sanjit Shaw
 
Inheritance in c++
Vineeta Garg
 
Operator overloading in C++
BalajiGovindan5
 
Inheritance in JAVA PPT
Pooja Jaiswal
 
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Final keyword in java
Lovely Professional University
 
Inheritance
Sapna Sharma
 
Inheritance in java
Tech_MX
 
Inheritance in java
RahulAnanda1
 
Multiple inheritance in c++
Sujan Mia
 
inheritance c++
Muraleedhar Sundararajan
 
Inheritance In Java
Arnab Bhaumik
 
Polymorphism
Nochiketa Chakraborty
 
classes and objects in C++
HalaiHansaika
 
Inheritance in c++
Vishal Patil
 
Class and Objects in Java
Spotle.ai
 
Visibility control in java
Tech_MX
 

Similar to Inheritance in Object Oriented Programming (20)

PPS
Inheritance
Ashish Awasthi
 
PPT
E -COMMERCE.ppt
classall
 
PPTX
Inheritance
rajshreemuthiah
 
PPTX
Relationship of inheritance in oopm.pptx
ayush626953
 
PPTX
Bethany CR8( kk need for ten idb seen dhi DC
TSaiteja2
 
PPTX
Inheritance
Siddhesh Palkar
 
PPTX
Programming Lesson by Slidesgo.pptx
DilanAlmsa
 
PPTX
Inheritance in C++ (Programming Fundamentals)
Home
 
PPTX
Bca 2nd sem u-3 inheritance
Rai University
 
PPTX
Inheritance ppt
Nivegeetha
 
PDF
Chapter25 inheritance-i
Deepak Singh
 
PPTX
Mca 2nd sem u-3 inheritance
Rai University
 
PPTX
Final presentation programming
haider ali
 
PPTX
Inheritance
lalithambiga kamaraj
 
PPTX
Inheritance
prashant prath
 
PPTX
Programming presentation
haider ali
 
PPTX
Inheritance in Java - An Introduction & types
VijethaChandran
 
PPTX
Ayan Das_25300121057.pptx
Ayan974999
 
PPTX
Oop lecture 05
University of Chitral
 
Inheritance
Ashish Awasthi
 
E -COMMERCE.ppt
classall
 
Inheritance
rajshreemuthiah
 
Relationship of inheritance in oopm.pptx
ayush626953
 
Bethany CR8( kk need for ten idb seen dhi DC
TSaiteja2
 
Inheritance
Siddhesh Palkar
 
Programming Lesson by Slidesgo.pptx
DilanAlmsa
 
Inheritance in C++ (Programming Fundamentals)
Home
 
Bca 2nd sem u-3 inheritance
Rai University
 
Inheritance ppt
Nivegeetha
 
Chapter25 inheritance-i
Deepak Singh
 
Mca 2nd sem u-3 inheritance
Rai University
 
Final presentation programming
haider ali
 
Inheritance
prashant prath
 
Programming presentation
haider ali
 
Inheritance in Java - An Introduction & types
VijethaChandran
 
Ayan Das_25300121057.pptx
Ayan974999
 
Oop lecture 05
University of Chitral
 
Ad

More from Ashita Agrawal (17)

PPTX
Linux operating system - Overview
Ashita Agrawal
 
PPTX
Introductio to Abstract Window Toolkit (AWT)
Ashita Agrawal
 
PDF
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
PPSX
Introduction to Sets
Ashita Agrawal
 
PDF
Business Overview
Ashita Agrawal
 
PPTX
Introduction to Java
Ashita Agrawal
 
PPT
Biography of Mahatma Gandhi : 1869-1948
Ashita Agrawal
 
PPTX
Cloud computing - new class of network based computing
Ashita Agrawal
 
PPT
constructor and destructor-object oriented programming
Ashita Agrawal
 
PPTX
Introduction to computer network
Ashita Agrawal
 
PPTX
Instruction Set of 8086 Microprocessor
Ashita Agrawal
 
PPTX
Testing Machine- universal tester
Ashita Agrawal
 
PPTX
Adolf Hitler - German politician(world war I)
Ashita Agrawal
 
PPTX
Charles babbage - Father of Computing.
Ashita Agrawal
 
PPTX
Ada Lovelace-The First Programmer
Ashita Agrawal
 
PPTX
Slums In India
Ashita Agrawal
 
PPTX
Augmented Reality
Ashita Agrawal
 
Linux operating system - Overview
Ashita Agrawal
 
Introductio to Abstract Window Toolkit (AWT)
Ashita Agrawal
 
INTRODUCTION TO UML DIAGRAMS
Ashita Agrawal
 
Introduction to Sets
Ashita Agrawal
 
Business Overview
Ashita Agrawal
 
Introduction to Java
Ashita Agrawal
 
Biography of Mahatma Gandhi : 1869-1948
Ashita Agrawal
 
Cloud computing - new class of network based computing
Ashita Agrawal
 
constructor and destructor-object oriented programming
Ashita Agrawal
 
Introduction to computer network
Ashita Agrawal
 
Instruction Set of 8086 Microprocessor
Ashita Agrawal
 
Testing Machine- universal tester
Ashita Agrawal
 
Adolf Hitler - German politician(world war I)
Ashita Agrawal
 
Charles babbage - Father of Computing.
Ashita Agrawal
 
Ada Lovelace-The First Programmer
Ashita Agrawal
 
Slums In India
Ashita Agrawal
 
Augmented Reality
Ashita Agrawal
 
Ad

Recently uploaded (20)

PPTX
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PPTX
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 
QUARTER 1 WEEK 2 PLOT, POV AND CONFLICTS
KynaParas
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
How to Set Up Tags in Odoo 18 - Odoo Slides
Celine George
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
I AM MALALA The Girl Who Stood Up for Education and was Shot by the Taliban...
Beena E S
 

Inheritance in Object Oriented Programming

  • 2. INDEX  Introduction  Derived class  visibility modes  Types of inheritance  Virtual base class  Constructors in derived classes
  • 3. INHERITANCE  The mechanism of deriving a new class from an old class is called inheritance.  The old class is referred as base class and new one is called as derived class.  A new class inherits some or all properties from the base class.  Inheritance enables reusability.
  • 4. TYPES OF INHERITANCE A B A B C A B C D C A B SINGLE INHERITANCE MULTILEVEL INHERITANCE MULTIPLE INHERITANCE HIERARCHICAL INHERITANCE
  • 5.  Single inheritance: a derived class with only one base class is called single inheritance.  Multiple inheritance: a derived class with several base classes is multiple inheritance.  Multilevel inheritance: the mechanism of deriving a class from another derived class is known as multilevel inheritance.  Hiererchical inheritance: one class may be inherited by more than one class is known as hierarchical inheritance. TYPES OF INHERITANCE