Does c# supports destructors?

Answer Posted / k. amith kumar

Yes

Example:
class A
{
A(){} //Constructor.
~A(){} //Distructor.
.........
..........
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In which order the destructor is called for an inherited class?

524


What is cls, cts and clr in net?

487


How can I process command-line arguments?

530


Explain the Abstract class in c#.net

553


What is the benefit of dependency injection c#?

488






What is the use of ispostback in c#?

472


What is xpath in c#?

485


What is an enumerator c#?

516


Does the variables of a private class-level inherited?

555


What is exe file in c#?

486


What is the task perform by clr?

570


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

552


What is a method signature?

529


What is asax file in c#?

571


Is it possible to have different access modifiers on the get/set methods of a property?

519