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
pseudocode for gregorian calendar

Overloading Binary Operators class SI {float i,p,n,r,a; public: SI(){}; SI(int gp,int gn, int gr); void putdata(void); SI operator+(SI); }; SI SI::opera

What if I wish a local to "die" before the close} of the scope wherein it was created? Can I call a destructor on a local if I want to?

Question : (a) (i) What is a structure member in C? What is the relationship between a structure member and the structure? (ii) How can structure variables be declared in C?

Project Overview A certain financial institution (bank) wishes to promote its new business products/services by conducting road shows in rural areas. Their aim is to encourage peop

Hi, I want to get rtsp source for windows

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

Write a program to calculate the timetable for numbers 1 -> 10 and display them as follows. Your solution should use for do loops      #include stdio.h void main() {    char p

Armed with your function from above, we can do some interesting things. For instance, any pixel where the offsets are both zero is a pit (lower than all surrounding points) .

What do you mean by a sequential access file? - When writing programs which store and retrieve data in a file, it's possible to designate that file into various forms. - A s