Constructor and Destructor - C#.NET

What is a Constructor?

It is the first method that are called on instantiation of a type. It provides way to set default values for data before the object is available for use. Performs other necessary functions before the object is available for use.

What is a Destructor?

It is called just before an object is destroyed. It can be used to run clean-up code. You can't control when a destructor is called since object clean up by common language runtime.
Abstract class in C#.NET
C#.NET - Define abstract class in C#.NET - An abstract class is a class that can't be instantiated...
Serialization in .NET
C#.NET - What is serialization in .NET? - Serialization is a process of converting an object into a stream of bytes...
C#.Net multiple inheritance
C#.Net support multiple inheritance - No, but we can use interface instead...
Post your comment