Answer Posted / guest
Any class that may act as the base of another class should
have a virtual destructor. This ensures that when an object
of the derived class is destroyed that the derived class
dtor will be invoked to destroy it. If the destructor is not
virtual, under some common circumstances, only the base
class' destructor will be invoked, regardless of the class
actually being destroyed. For practical purposes this means
that a class which does, could or should have virtual member
functions, should also have a virtual destructor.
| Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
officer say me - i am offered to a smoking , then what can you say
How do you define a class in oop?
What are the 5 oop principles?
write a program to find 2^n+1 ?
Whats is abstraction in oops?
Where is pseudocode used?
2. Give the different notations for the class.\
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
what is difference between class template and template class?
What is encapsulation in oop?
What is polymorphism programming?
What is a class oop?
Can enum be null?
What is the purpose of polymorphism?
What are the 4 main oop principles?