In C++, what happens if a base class destructor is...
Guiding State PSC aspirants since 2016 50,000+ students · 1,000+ final selections Exam Calendar Results Call 9116926003
pscnotes
Pick your state
TPSC Prelims previous year questions

In C++, what happens if a base class destructor is NOT declared virtual and a derived object is deleted via base pointer ?

Asked in TPSC Senior Technical Assistant 2026

  1. Both base and derived destructors are called
  2. Only derived class destructor is called
  3. Compilation error
  4. Only base class destructor is called

Answer under review: our editors are checking this question. Try the other TPSC Prelims previous year questions questions meanwhile.

More TPSC Prelims previous year questions questions

All 772 TPSC Prelims previous year questions questions →