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

Structs are not reference types. Can structs have constructors?

0 Answers  


What is difference between abstraction and encapsulation in c#?

0 Answers  


Is enum a class c#?

0 Answers  


Where do we use serialization in c#?

0 Answers  


What is hash c#?

0 Answers  






Can we return two values from a function?

12 Answers   MD Synergy,


Is arraylist faster than linkedlist?

0 Answers  


Why do we use struct in c#?

0 Answers  


What language is c# similar to?

0 Answers  


Explain about Serialize and MarshalByRef?

0 Answers  


How to make a class not inheritable other than sealed?

3 Answers  


What is the and operator in c#?

0 Answers  


Categories