Does c# supports destructors?

Answer Posted / mahesh

No, I didnt think distructor is supported by C# as far as
dispose() is concern it is used for clean up code like
finalize the object is distroyed automatically by garbage
collector

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an int be negative c#?

584


What are abstract classes in c#?

486


Define boxing and unboxing in c#?

478


Why can’t struct be used instead of class for storing entity?

482


What is an int in c#?

525






What are the properties of string?

489


What is session management in c#?

529


Is array passed by reference in c#?

516


Which of these statements correctly declares a two-dimensional array in c#?

650


What is the major difference between a custom control and user control?

556


Is it possible to have a static indexer in c#? Allowed in c#.

529


What is a bool in c#?

479


What is difference between interface and abstraction?

467


What are Indexers in C#?

589


What is array and arraylist?

544