C Sharp Destructor
C# Destructor Just opposite to a C# constructor, a destructor in C# destructs the objects of classes. It is invoked automatically and is defined only once in a class. A destructor in C# can’t be public, can’t apply modifiers and can’t have parameters. Example: using System; public class Cities { public Cities() { Console.WriteLine("Constructed"); } … Read more