Answer Posted / varun
Normally you never explicitly call
the destructor, it is automatically called by the C++ frame
work when the object is deleted/goes out of scope.
Therefore you would not need to overload the destructor
because the frame work always calls the default destructor.
Additionally the C++ standard defines that a conforming
compiler only allows for 1 destructor per class.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is abstract class in oops?
what are the ways in which a constructors can be called?
what's the basic's in dot net
What language is oop?
Why we use classes in oop?
What are main features of oop?
What is class and object with example?
what is difference between class template and template class?
What are the benefits of interface?
Why is static class not inherited?
What is inheritance and how many types of inheritance?
What does I oop mean?
What are the 3 pillars of oop?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is inheritance write a program to show use of inheritance?