0% found this document useful (0 votes)
25 views1 page

Inheritance Polymorphism Notes

The document provides detailed notes on inheritance and polymorphism, covering various types of inheritance, advantages and disadvantages, and the scope of protected and private variables. It discusses multiple inheritance, ambiguity issues like the diamond problem, and includes comparisons between single and multiple inheritance. Additionally, it explains pure virtual functions, differentiates between compile-time and run-time polymorphism, and offers short notes on virtual functions.

Uploaded by

Aditi thakare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Inheritance Polymorphism Notes

The document provides detailed notes on inheritance and polymorphism, covering various types of inheritance, advantages and disadvantages, and the scope of protected and private variables. It discusses multiple inheritance, ambiguity issues like the diamond problem, and includes comparisons between single and multiple inheritance. Additionally, it explains pure virtual functions, differentiates between compile-time and run-time polymorphism, and offers short notes on virtual functions.

Uploaded by

Aditi thakare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Inheritance and Polymorphism - Detailed Notes

Inheritance and Polymorphism - Detailed Notes

1. Explain different types of Inheritance with example.

(Single, Multiple, Multilevel, Hierarchical, Hybrid, example explanations, virtual keyword, etc.)

2. Advantages and Disadvantages of Inheritance

(10 points each for advantages and disadvantages.)

3. Scope of Protected and Private Variables

(10 points each for protected and private.)

4. Multiple Inheritance and Ambiguity

(10 points explaining the diamond problem and solution.)

5. Single vs Multiple Inheritance

(Comparison table.)

6. Short Notes on:

(i) Multiple Inheritance (10 points)

(ii) Base Class and Derived Class (10 points)

7. Pure Virtual Function with example

(10 detailed points.)

8. Polymorphism: Compile-time vs Run-time

(Definitions and differences.)

9. Short Note on:

(a) Virtual Function (10 points)

(b) Pure Virtual Function (already explained above.)

You might also like