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

Is c# pass by reference?

0 Answers  


What are the types of delegates in c#?

0 Answers  


What are the fundamental differences between value types and reference types?

0 Answers  


Compare and contrast between the System.Array.CopyTo() and Clone()?

0 Answers   Siebel,


Overloaded constructor will call default constructor internally?

0 Answers  






Define delegation in .net?

0 Answers  


Do loops in c#?

0 Answers  


Whats the use of string builder?

1 Answers   ADITI,


Can Any body send C Sharp latest interview questions to my mail id: alim.mtech@gmail.com.

1 Answers  


What is a copy constructor in c#?

0 Answers  


Is lazy t thread safe?

0 Answers  


How do you declare a method in c#?

0 Answers  


Categories