interview questions and answers

Technical Interview Questions | C++ Interview Questions

Home interview questions Programming interview questions C++ 
Friday, 10 February 2012
Main Menu
Home
Online Test
Contest
Search
FAQs
Contact Us
Login
Most Popular Category
JAVA

Microsoft Technologies
ASP, C#, DotNet, ...

Programming
C++, PHP, VB, ...

SAP

Testing

Web Technologies

Polls
Does personal networking help in job search?
 
IT Placement Papers interview questions Programming interview questions C++

This category contains C++ Interview Questions and Answers


Virtual Destructor - What is the need for a Virtual Destructor?

PDF Print E-mail

Destructors are declared as virtual because if do not declare it as virtual the base class destructor will be called before the derived class destructor and that will lead to memory leak because derived classes objects will not get freed.Destructors are declared virtual so as to bind objects to the methods at runtime so that appropriate destructor is called.




Be first to comment this article

Only registered users can write comments.
Please login or register.

 
Next >

Technical Interview Questions | C++ Interview Questions

Top!
Top!
Copyright 2008 InterviewDuniya.com All Rights Reserved.
Partner Site: Maheshwari Matrimony