What are destructors?



What are destructors?..

Answer / Raj Veer Singh

Destructors in C++ are special functions that are automatically called when an object goes out of scope or is deleted. They are used to clean up any resources (such as memory, files, database connections) that were allocated by the object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is oops and c++ same?

1 Answers  


Keyword mean in declaration?

1 Answers  


What about Virtual Destructor?

1 Answers   Virtusa,


why we cant create array of refrences

4 Answers  


Is atoi safe?

1 Answers  


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1 Answers  


Why c++ is not a pure oop language?

1 Answers  


How one would use switch in a program?

1 Answers  


What is the best c++ ide?

1 Answers  


What is private public protected in c++?

1 Answers  


Explain shallow copy?

1 Answers  


founder of c++

7 Answers   Microtek, TCS, TeleCommand,


Categories