What is Destructor in C++?



What is Destructor in C++?..

Answer / Rishu Mair

A destructor in C++ is a special member function of a class that is automatically called when an object of its class goes out of scope or is deleted. It is used to release any resources allocated by the object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

How do we implement inheritance in c++?

1 Answers  


How can you find the nodes with repetetive data in a linked list?

1 Answers   Lucent,


What is exception handling in C++?

1 Answers  


What is an Object/Instance?

1 Answers  


What is an overflow error?

1 Answers  


Write bites in Turbo c++ Header ("Include") Files.

1 Answers  


When a function is made inline. Write the situation where inline functions may not work.

2 Answers  


Can c++ be faster than c?

1 Answers  


How does c++ sort work?

1 Answers  


Define a constructor?

1 Answers  


What are friend functions in C++?

1 Answers   BlackRock,


What do you mean by abstraction in C++?

1 Answers  


Categories