Inheritance:
Chapter 9:
Ms. Munazza Mah Jabeen
Assistant Professor of Computer Science
Inheritance:
• Inheritance is the
process of creating new
classes, called derived
classes, from existing or
base classes. The
derived class inherits all
the capabilities of the
base class but can add
embellishments and
refinements of its own
Access specifiers without/with inheritance:
• Derived Class and Base Class
• Specifying the Derived Class
• Generalization in UML Class
Diagrams
• Accessing Base Class Members
• Substituting Base Class Constructors
• Substituting Base Class Member
Functions
• The protected Access Specifier
• Base Class Unchanged
• Derived Class Constructors
Class Hierarchies:
• “Abstract” Base Class
• Public and Private
Inheritance
Multiple Inheritance:
• Member Functions in Multiple Inheritance
• Constructors in Multiple Inheritance
• No-Argument Constructor
• Multi-Argument Constructors
• Ambiguity in Multiple Inheritance
• Aggregation: Classes Within Classes

More Related Content

PPTX
Query editor for multi databases
PPTX
Java JEE training
PPS
Aae oop xp_09
PPTX
B.sc CSIT 2nd semester C++ Unit5
PDF
Inheritance
PPSX
PPTX
Inheritance
PDF
chapter-10-inheritance.pdf
Query editor for multi databases
Java JEE training
Aae oop xp_09
B.sc CSIT 2nd semester C++ Unit5
Inheritance
Inheritance
chapter-10-inheritance.pdf

Similar to Inheritance (20)

PPT
PPT
Lecturespecial
PPTX
Inheritance
PPTX
Ritik (inheritance.cpp)
PDF
PPT
Inheritance in C++
PPT
inheritance final ppvjjfjjdrtdyyrtuytyouijkt.ppt
PDF
Constructor & destructor
PPTX
INHERITANCE
PDF
OOP Inheritance
PPTX
[OOP - Lec 20,21] Inheritance
PDF
lecture-2021inheritance-160705095417.pdf
PPTX
Oopc (group 9)
PPTX
Inheritance
PPTX
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
PDF
OOP Assign No.03(AP).pdf
PPT
session 24_Inheritance.ppt
PPTX
inheritance in OOPM
PDF
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
PDF
2 BytesC++ course_2014_c11_ inheritance
Lecturespecial
Inheritance
Ritik (inheritance.cpp)
Inheritance in C++
inheritance final ppvjjfjjdrtdyyrtuytyouijkt.ppt
Constructor & destructor
INHERITANCE
OOP Inheritance
[OOP - Lec 20,21] Inheritance
lecture-2021inheritance-160705095417.pdf
Oopc (group 9)
Inheritance
INHERITANCE, POINTERS, VIRTUAL FUNCTIONS, POLYMORPHISM.pptx
OOP Assign No.03(AP).pdf
session 24_Inheritance.ppt
inheritance in OOPM
04_-_Inheritance_Polymorphism_and_Interfaces.pdf
2 BytesC++ course_2014_c11_ inheritance
Ad

More from Munazza-Mah-Jabeen (20)

PPTX
Virtual Functions
PPTX
The Standard Template Library
PPTX
Object-Oriented Software
PPTX
Templates and Exceptions
PPTX
Dictionaries and Sets
PPTX
More About Strings
PPTX
Streams and Files
PPTX
Lists and Tuples
PPT
Files and Exceptions
PPT
PPTX
PPT
Repitition Structure
PPTX
Operator Overloading
PPT
Memory Management
PPTX
Arrays and Strings
PPTX
Objects and Classes
PPTX
PPTX
Structures
PPTX
Loops and Decisions
PPTX
C++ programming basics
Virtual Functions
The Standard Template Library
Object-Oriented Software
Templates and Exceptions
Dictionaries and Sets
More About Strings
Streams and Files
Lists and Tuples
Files and Exceptions
Repitition Structure
Operator Overloading
Memory Management
Arrays and Strings
Objects and Classes
Structures
Loops and Decisions
C++ programming basics
Ad

Recently uploaded (20)

PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
advance database management system book.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
Computer Architecture Input Output Memory.pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
IGGE1 Understanding the Self1234567891011
PDF
International_Financial_Reporting_Standa.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Hazard Identification & Risk Assessment .pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Empowerment Technology for Senior High School Guide
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Share_Module_2_Power_conflict_and_negotiation.pptx
Paper A Mock Exam 9_ Attempt review.pdf.
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
advance database management system book.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
My India Quiz Book_20210205121199924.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Computer Architecture Input Output Memory.pptx
What if we spent less time fighting change, and more time building what’s rig...
IGGE1 Understanding the Self1234567891011
International_Financial_Reporting_Standa.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Hazard Identification & Risk Assessment .pdf
Introduction to pro and eukaryotes and differences.pptx
Weekly quiz Compilation Jan -July 25.pdf
Empowerment Technology for Senior High School Guide

Inheritance

  • 1. Inheritance: Chapter 9: Ms. Munazza Mah Jabeen Assistant Professor of Computer Science
  • 2. Inheritance: • Inheritance is the process of creating new classes, called derived classes, from existing or base classes. The derived class inherits all the capabilities of the base class but can add embellishments and refinements of its own
  • 3. Access specifiers without/with inheritance: • Derived Class and Base Class • Specifying the Derived Class • Generalization in UML Class Diagrams • Accessing Base Class Members • Substituting Base Class Constructors • Substituting Base Class Member Functions • The protected Access Specifier • Base Class Unchanged • Derived Class Constructors
  • 4. Class Hierarchies: • “Abstract” Base Class • Public and Private Inheritance
  • 5. Multiple Inheritance: • Member Functions in Multiple Inheritance • Constructors in Multiple Inheritance • No-Argument Constructor • Multi-Argument Constructors • Ambiguity in Multiple Inheritance • Aggregation: Classes Within Classes