Rule: Override reuses an inherited vtable slot¶
Canonical rule slug: inherited-override-reuses-slot. ← back to all rules
A derived class overrides an inherited virtual, adding an exported symbol while reusing the existing slot rather than growing the vtable.
Canonical demonstration¶
- case185_inherited_override_reuses_slot — Inherited override reuses the base's vtable slot (🟢 COMPATIBLE)