what is a destructor?



what is a destructor?..

Answer / Radheshyam Pathak

In C#, a destructor is a member that provides termination services for an object. It has the same name as the class prefixed with a tilde (~). Unlike constructors, destructors are not called explicitly. Instead, they are invoked automatically by the CLR when the garbage collector reclaims memory occupied by the object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is console write in c#?

1 Answers  


Why we use get set property in c#?

1 Answers  


What is called method in c#?

1 Answers  


Is double a decimal?

1 Answers  


Why ref is used in c#?

1 Answers  


Can we return two values from a function?

12 Answers   MD Synergy,


What is token in c#?

1 Answers  


What is lock in c#?

1 Answers  


What is dbml file in c#?

1 Answers  


What are the benefits of using windows services:

1 Answers  


how encapsulation is implemented in c#

1 Answers   Cognizant,


Why do we use namespace in c#?

1 Answers  


Categories