What are destructors in C#?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between array and collection?

462


What are events in C#?

554


How do we achieve encapsulation in c#?

479


What is the base class from which all value types are derived?

497


What is asynchronous one-way calls?

517






What are jagged arrays used for?

479


What is mvc pattern in c#?

514


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

576


What are the types of inheritance in c#?

494


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

1763


What is whitespace in c#?

490


What is dictionary class in c#?

471


What is the Signification of the "new " keyword in C#? example

510


What is an escape sequence? Name some string escape sequences in c#.

516


What is typeof undefined?

503