Tagged articles

runtime dispatch

1 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Jul 18, 2026 · Fundamentals

Mastering C++ Virtual Tables: Demystify Polymorphism and Avoid Pitfalls

This article explains how C++ implements polymorphism through virtual tables and vptrs, walks through single‑ and multiple‑inheritance examples, compares compile‑time and runtime polymorphism, and shows practical scenarios and guidelines for when to use or avoid polymorphic designs.

C++inheritancepolymorphism
0 likes · 26 min read
Mastering C++ Virtual Tables: Demystify Polymorphism and Avoid Pitfalls