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
What is algorithm in c++ programming?
Do you know about latest advancements in C++ ?
What is the difference between structure and class?
What is difference between n and endl in c++?
What is a forward referencing and when should it be used?
What is vector string in c++?
How do you decide which integer type to use?
What is the real purpose of class – to export data?
What is the function to call to turn an ascii string into a long?
Is c++ free?
Is java the same as c++?
Out of fgets() and gets() which function is safe to use and why?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What is a stack c++?
What are the advantages of using a pointer?