* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
763 B
Markdown
8 lines
763 B
Markdown
# Dynamic Polymorphism
|
|
|
|
Dynamic polymorphism is a feature in C++ that allows objects of different classes to be treated as objects of a common type. This is achieved through virtual functions, where a derived class can override a function defined in its base class. When a virtual function is called through a base class pointer or reference, the correct function implementation for the derived class object is executed at runtime, enabling flexible and extensible code.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Understanding Dynamic Polymorphism in C++](https://hackernoon.com/understanding-dynamic-polymorphism-in-c)
|
|
- [@video@Dynamic Binding (Polymorphism) With The Virtual Keyword | C++ Tutorial](https://www.youtube.com/watch?v=-FUhG98hdLI) |