How do you know that your class needs a virtual destructor?

Answer Posted / nishikant sahu

If programmer intended to act the class as a BASE class
somewhere then it is rule of thumb or good programming that
you have to have declare your constructor virtual.

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is algorithm in c++ programming?

591


Do you know about latest advancements in C++ ?

662


What is the difference between structure and class?

564


What is difference between n and endl in c++?

586


What is a forward referencing and when should it be used?

581






What is vector string in c++?

578


How do you decide which integer type to use?

579


What is the real purpose of class – to export data?

620


What is the function to call to turn an ascii string into a long?

605


Is c++ free?

586


Is java the same as c++?

551


Out of fgets() and gets() which function is safe to use and why?

730


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

839


What is a stack c++?

578


What are the advantages of using a pointer?

609