Question

A C++ base pointer refers to a derived object. The base function is virtual and overridden. What happens when called through the base pointer?

A The base implementation is always selected statically.
B The derived override is selected through dynamic dispatch.
C The call is rejected because base pointers cannot refer to derived objects.
D Both implementations execute automatically.
E The compiler converts the call to a template instantiation.
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)