Question

Why should a C++ base class destructor be virtual when deleting derived objects through base pointers?

A To prevent construction
B To invoke derived destruction correctly
C To disable inheritance
D To force slicing
E To make methods static
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)