SlideShare a Scribd company logo
INHERITANCE
B.Sc.IT
325
Ankit Surati
What is Inheritance?
• The method by which we can derive a new
class from an old called as INHERITANCE or
DERIVATION.
• The old class referred as BASE CLASS and the
new generated class is called as DERIVED
CLASS or SUBCLASS.
Advantages
• Reusability
• Reliability
• Save time and memory
• Enhancement
• Classification
• Industry used
Disadvantage
• Member of the base class becomes private
member of derived class but cannot be
accessed by parts of your program that are
not members of either the base of derived
class even though base class is inherited as
private by derived one.
Visibility mode
Types of inheritance
1.Single Inheritance
• The single inheritance is having only one base
class and only one derived class.
• The single child Inherits the property from
single parent class is nothing but SINGLE
INHERITANCE.
• The child classes use
some or all properties from
parent class.
2.Multiple Inheritance
The new derived class can adapt
Various properties from various
Base classes so that the class is
Very powerful.
The derived child class is the
Combination of various base class.
3.Multilevel Inheritance
• Suppose one class is derived
from its parent class
& same class acts as base of
another class.
That class is called as
INTERMEDIATE BASE CLASS.
4.Hierarchical Inheritance
• The dictionary meaning of hierarchy is as,
system of grades of status or authority
ranked one above the other.
• The classification of objects into
various sections. Those sections
are nothing but classesdifferent
classes.
5.Hybrid Inheritance
• Sometimes when more than one type of
Inheritance is used in the
functionality of program
then it is called as HYBRID
INHERITANCE.
6.Multi-path Inheritance
• When multiple, multilevel
and hybrid inheritance
invoked altogether,
then it is known as
multi-path inheritance

More Related Content

PDF
Servizio di Censimento Informatizzato di alberi siti nel Comune di Lodi
PPTX
Launch of Sealed Air's Intellibot (Robotic Cleaning Technology)
DOCX
Resume edited
DOCX
Library of the Circus Conservatory of America Collection Development Policy
PDF
Punto, linea y plano
PDF
aviva_newsletter_may_2015_web
PPT
Bus 51 ch_4_s15
PDF
Parco Isola Carolina, Comune di Lodi - Secondo incontro
Servizio di Censimento Informatizzato di alberi siti nel Comune di Lodi
Launch of Sealed Air's Intellibot (Robotic Cleaning Technology)
Resume edited
Library of the Circus Conservatory of America Collection Development Policy
Punto, linea y plano
aviva_newsletter_may_2015_web
Bus 51 ch_4_s15
Parco Isola Carolina, Comune di Lodi - Secondo incontro

Viewers also liked (8)

PPTX
Internship%20Presentation%20RJY-5
DOCX
Instructional Design Plan
PPTX
Circus Conservatory of America Library Presentation
PPTX
Gun control fact pack july 4, 2015
DOC
Shanks, Neil CV
PDF
CV - Luttrell, Mary Beth
PPTX
Data entry india bpo - Outsource Data Entry India
PPT
The growth of the sustainability agenda and the role of facilities management
Internship%20Presentation%20RJY-5
Instructional Design Plan
Circus Conservatory of America Library Presentation
Gun control fact pack july 4, 2015
Shanks, Neil CV
CV - Luttrell, Mary Beth
Data entry india bpo - Outsource Data Entry India
The growth of the sustainability agenda and the role of facilities management
Ad

Similar to OOPS-"INHERITANCE" (20)

PPTX
INHERITANCE
PPTX
INHERITANCES.pptx
PPTX
Inheritance
PPTX
Inheritance
PPTX
Inheritance
PPTX
PDF
java_vyshali.pdf
PPTX
PPTX
Inheritance in OOPS
PDF
PPTX
Inheritance in Object Oriented Programming
PPTX
Ritik (inheritance.cpp)
PPT
Topic inheritance
PPS
Inheritance
PDF
INHERITANCE
PDF
OOP Inheritance
PPTX
Inheritance
PPTX
Oopc (group 9)
PDF
Inheritance in OODB
INHERITANCE
INHERITANCES.pptx
Inheritance
Inheritance
Inheritance
java_vyshali.pdf
Inheritance in OOPS
Inheritance in Object Oriented Programming
Ritik (inheritance.cpp)
Topic inheritance
Inheritance
INHERITANCE
OOP Inheritance
Inheritance
Oopc (group 9)
Inheritance in OODB
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PPTX
1. Introduction to Computer Programming.pptx
PPT
Teaching material agriculture food technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
Approach and Philosophy of On baking technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
cuic standard and advanced reporting.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
1. Introduction to Computer Programming.pptx
Teaching material agriculture food technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Approach and Philosophy of On baking technology
20250228 LYD VKU AI Blended-Learning.pptx
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
NewMind AI Weekly Chronicles - August'25-Week II
Accuracy of neural networks in brain wave diagnosis of schizophrenia
MYSQL Presentation for SQL database connectivity
Advanced methodologies resolving dimensionality complications for autism neur...
Building Integrated photovoltaic BIPV_UPV.pdf
Machine Learning_overview_presentation.pptx
Empathic Computing: Creating Shared Understanding

OOPS-"INHERITANCE"

  • 2. What is Inheritance? • The method by which we can derive a new class from an old called as INHERITANCE or DERIVATION. • The old class referred as BASE CLASS and the new generated class is called as DERIVED CLASS or SUBCLASS.
  • 3. Advantages • Reusability • Reliability • Save time and memory • Enhancement • Classification • Industry used
  • 4. Disadvantage • Member of the base class becomes private member of derived class but cannot be accessed by parts of your program that are not members of either the base of derived class even though base class is inherited as private by derived one.
  • 7. 1.Single Inheritance • The single inheritance is having only one base class and only one derived class. • The single child Inherits the property from single parent class is nothing but SINGLE INHERITANCE. • The child classes use some or all properties from parent class.
  • 8. 2.Multiple Inheritance The new derived class can adapt Various properties from various Base classes so that the class is Very powerful. The derived child class is the Combination of various base class.
  • 9. 3.Multilevel Inheritance • Suppose one class is derived from its parent class & same class acts as base of another class. That class is called as INTERMEDIATE BASE CLASS.
  • 10. 4.Hierarchical Inheritance • The dictionary meaning of hierarchy is as, system of grades of status or authority ranked one above the other. • The classification of objects into various sections. Those sections are nothing but classesdifferent classes.
  • 11. 5.Hybrid Inheritance • Sometimes when more than one type of Inheritance is used in the functionality of program then it is called as HYBRID INHERITANCE.
  • 12. 6.Multi-path Inheritance • When multiple, multilevel and hybrid inheritance invoked altogether, then it is known as multi-path inheritance