Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Learn C/C++ programming
·
Module 8
Inheritance and Polymorphism in C++
1
Public Inheritance: Modeling "Is-A" Relationships
Implement 'is-a' relationships using public inheritance
2
Static vs. Dynamic Polymorphism
Explain the difference between compile-time (static) and run-time (dynamic) polymorphism
3
Dynamic Polymorphism with Virtual Functions
Use virtual functions to achieve dynamic polymorphism
4
Virtual Destructors Explained
Explain the necessity of a virtual destructor in a base class
5
Abstract Base Classes and Pure Virtual Functions
Define and use abstract base classes with pure virtual functions
6
Safe Downcasting with `dynamic_cast`
Use dynamic_cast for safe downcasting in a polymorphic class hierarchy
Previous module
Object-Oriented Programming Fundamentals in C++
Next module
Modern C++: Resource Management and Generic Programming