Tagged articles

virtual table

3 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
Deepin Linux
Deepin Linux
Sep 10, 2025 · Fundamentals

Unlocking C++ Polymorphism: How Virtual Tables Enable Runtime Flexibility

This article explains how C++ implements polymorphism through virtual functions and vtables, covering static and dynamic polymorphism, memory layout, multiple inheritance, practical code examples, design‑pattern applications, and the importance of virtual destructors for safe resource cleanup.

C++Design PatternsOOP
0 likes · 35 min read
Unlocking C++ Polymorphism: How Virtual Tables Enable Runtime Flexibility