Described virtual destructor?, C/C++ Programming

Described virtual destructor?

Posted Date: 3/16/2013 2:44:26 AM | Location : United States





A: The simple answer is that a virtual destructor is one which is declared along with the virtual attribute. The behavior of virtual destructor is what is significant. If you demolish an object via a caller or reference to a base class, and base-class destructor is not virtual, derived-class destructors are not executed, & destruction may not be complete.

 

Posted by | Posted Date: 3/16/2013 2:44:49 AM


Related Discussions:- Described virtual destructor?, Assignment Help, Ask Question on Described virtual destructor?, Get Answer, Expert's Help, Described virtual destructor? Discussions

Write discussion on Described virtual destructor?
Your posts are moderated
Related Questions

Project Description: I have a barber salon I am seeking someone to build me software for my PARTNER PT6910 touch screen till system. This software must add multiple staff login

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome

Conversion from Basic to User-Defined variable Consider the following example. class Distance                  {                   public  :

color representation 0,1,2,3,4,5,6,7,.......

Project Description: I am seeking a developer who can start an app from scratch and get it delivered to me as soon as possible. It is a little android based app. A background on

#questAt a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets wit

Write a Program for Calculating Value of an Integer? For a clear understanding of recursive function we shall see an illustration for calculating value of an integer. main() {

A: Here are a few of the many instance of operator overloading: myString + yourString may concatenate two std::string objects myDate++ may increment a Date object a * b may m