Features of Static/Shared classes.

Features of Static/Shared classes.

Static classes are used when any change made to an object should not affect the data and functions of the class. They can be used to create data and functions without the need of an instance.

Following are features of Static/Shared classes :

- They can not be instantiated. By default a object is created on the first method call to that object.
- Static/Shared classes can not be inherited.
- Static/Shared classes can have only static members.
- Static/Shared classes can have only static constructor.
What is Operator Overloading in .NET?
Operator overloading is the most evident example of Polymorphism.....
What is Finalize method in .NET?
Object.Finalize method in .NET is typically used to clean and release unmanaged resources like OS files, window etc....
What are the concepts of DISPOSE method in .NET?
Dispose method belongs to IDisposable interface. It is used to free unmanaged resources like files, network connection etc.....
Post your comment