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 many variables do you need?

0 Answers  


Can interface have virtual methods in c#?

0 Answers  


What are the main reasons to use c# language?

0 Answers  


What is polymorphism c# example?

0 Answers  


Why main is static in c#?

0 Answers  






Explain the difference between a struct and a class?

0 Answers  


What is a partial class in c#?

0 Answers  


What is the benefit of delegate in c#?

0 Answers  


What?s a satellite assembly?

2 Answers  


Define satellite Assembly?

0 Answers   Siebel,


How are Windows programs different from normal C-programs?

0 Answers   Tech Mahindra,


What is data binding with example?

0 Answers  


Categories