What are destructors in C#?



What are destructors in C#?..

Answer / hrpynux@gmail.com

Destructors in C++ are members functions in a class that delete an object. They are called when the class object goes out of scope such as when the function ends, the program ends, a delete variable is called etc. ... Also, destructors have the same name as their class and their name is preceded by a tilde(~).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How is exception handling implemented in c#?

0 Answers  


Is constructor a static method?

0 Answers  


Why use “using” in c#?

0 Answers  


Define Abstract Class in C#

0 Answers   HCL,


What is difference between for and foreach loop in c#?

0 Answers   MCN Solutions,






What is an interface class? Give one example of it

0 Answers  


What is data set in c#?

0 Answers  


What is the use of private constructor in c#?

0 Answers  


What is difference between dll and exe in c#?

0 Answers  


Is c# queue thread safe?

0 Answers  


What is icollection in c#?

0 Answers  


What Are The .Net Object

2 Answers   IMB, Reliance,


Categories