What about virtual destructor?, C/C++ Programming

What about Virtual Destructor?

 

 

Posted Date: 3/15/2013 3:52:38 AM | Location : United States





What about Virtual Destructor?

A: Yes there is a Virtual Destructor. A destructor can be virtual as this is possible as at runtime based on the type of object caller is calling to, correct destructor will be called.

 

Posted by | Posted Date: 3/15/2013 3:53:20 AM

What about Virtual Destructor?

A: Yes there is a Virtual Destructor. A destructor can be virtual as this is possible as at runtime based on the type of object caller is calling to, correct destructor will be called.

 

Posted by | Posted Date: 3/15/2013 3:53:40 AM


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

Write discussion on What about virtual destructor?
Your posts are moderated
Related Questions
Program1: Write a program to find the factorial of a given number. The input is user given. Final output is printed out on to the screen. Program2: Write a program to gene


Question : (a) How does a structure differ from an array? (b) Describe how a structure differs from a union? (c) Declare a union called ‘clothes' which consists of the


How does free know the size of memory to be deleted.? int *i = (int *)malloc(12); followed by free(i); how did free function call know how much of memory to delete? A: It bas

C program to remove vowels in sentence : void main() {                 char  str[100];                 int n;                 printf("enter string\n");

Program is to define a class as student: Program is to define a class as student and display the records specific depending upon the number class student  {  private:

Write a simple generic version of method isEqualTo that compares its two arguments with the equals method and returns true if they are equal and false otherwise. Use this generic m

Array of Objects A class is a template, which can contain data items as well as member functions to operate on the data items. Various objects of the class can also be declared

Define the Stream Oriented Data Files? There are two dissimilar types of data files called stream-oriented (or standard) data files and system-oriented (or low-level) data file