Why is destructor used?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

write a C++ program for booking using constructor and destructor.

0 Answers   HAL,


why the memory allocated with new cant be freed using free()

2 Answers  


WHEN A COPY CONSTER IS CALL ?

4 Answers  


Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


what i oops concept, how many languages supports oops concept?

3 Answers   Value Labs,






What is a class and object?

0 Answers  


What is design patterns in C++?

2 Answers   Persistent,


what is the difference between class to class type conversion and copy constructor ?

2 Answers  


where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?

2 Answers   Infosys, Microsoft,


The expansion of GNU

3 Answers  


c++ program to swap the objects of two different classes

0 Answers  


How to call a non virtual function in the derived class by using base class pointer

3 Answers   HCL,


Categories