Class A class is the most powerful data type in C#. Like structures, a class defines the data and behavior of the data type. It is nothing but a variable of type Object. Programmers …
Read More »Object Oriented Concept in C#
Interfaces in C#
C# language does not support multiple inheritance. To solve this problem, Microsoft introduced interfaces into C#. They are regarded as an alternative to multiple inheritance. All interfaces should be declared with the keyword Interface. …
Read More »Abstract Class in C#
The abstract class is a special type of class which contains at least one abstract method. It should be declared with the keyword abstract. Every abstract class consists of one or more abstract methods. These …
Read More »Sealed Class in C#
Classes declared with the sealed keyword cannot be extended. That means, when you declare a base class with this keyword, you cannot use it in a derived class. In other words the class cannot be …
Read More »