Interviewer And Interviewee Guide

C++ Virtual Functions Interview Question:

Explain virtual destructor?

Submitted by: Muhammad
If the destructor in the base class is not made virtual, then an object that might have been declared of type base class and instance of child class would simply call the base class destructor without calling the derived class destructor.
Submitted by: Muhammad

Read Online C++ Virtual Functions Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.