Does c# supports destructors?

Answer Posted / chinju

yes c# support destructor.it is used to delete object
explicitly.Dispose() is used for this.if we didn't write the
destructor explicitly it will call the default destructor ie
Finalize().always destructor is executed after the execution
of name space

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between abstract and abstraction?

442


What is a dynamic assembly?

525


What is the difference between throw and throw ex?

467


Why delegates are safe in c#?

454


Can properties be overloaded in c#?

552






Explain how to parse a datetime string?

506


What is integer c#?

491


How do I create multifile assembly?

508


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

551


What is .net c#?

479


How does bubble sort work?

508


What is serialization in dot net?

479


What is dynamic in c#?

467


Is multiple inheritance possible in c#?

560


Explain about generics in c#.net?

513