Explain Destructor in c#?

Destructors’ are used to destruct instances of classes. When we are using destructors in C#, we have to keep in mind the following things:

  1. A class can only have one destructor.
  2. Destructors cannot be inherited or overloaded.
  3. Destructors cannot be called. They are invoked automatically.
  4. A destructor does not take modifiers or have parameters.


Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*