when can we use virtual destructor?
Answer Posted / yaggu
Basically, the characteristics it self defines, that
constructor can not be virtual but overloaded while in the
inverse to this, the destructor can not be
overloaded....means there may be more than one constructors
in class and when you create the object of the class,
constructor invokes and when you do not need at the same
time though you define more than one constructors but with
only one destructor we can destroy the object.....that is why...
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
Write a program to show polymorphism in C++?
What is the difference between global variables and static varables?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
Is c++ a software?
Is arr and &arr are same expression for an array?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
Explain virtual class?
When is dynamic checking necessary?
What is the main purpose of c++?
What is a stack? How it can be implemented?
How much is c++ certification?
What is the difference between structure and class?
What is the best c++ compiler for windows 10?
Distinguish between a # include and #define.
What are the vectors in c++?