Why would you make a destructor virtual?
Answer Posted / sunny bogawat
we make destructure as virtual because when we derived a
class from base class then destructor called from derived
to base so for this happening correctly we haveto make base
class destructor as avirtual.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the virtual inheritance in c++.
What is switch case in c++ syntax?
Explain the static member function.
What operator is used to access a struct through a pointer a) >> b) -> c) *
Do the parentheses after the type name make a difference with new?
Explain the purpose of the keyword volatile.
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Explain how functions are classified in C++ ?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
Which is best ide for c++?
How does java differ from c and c++?
What is the difference between the parameter to a template and the parameter to a function?
What is the use of turbo c++?
What is a multiset c++?