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.)