Dynamic Keyword in C#

    Dynamic Keyword        In C# 4.0 dynamic keyword was introduced, the advantage of dynamic keyword is that the actual type of variable of dynamic type is decided at run time. You can initialize the variable of dynamic type with any type of value or even if...

Sealed Class in C#

Sealed Class    Sealed classed can not be inherited, if you try to inherit from a sealed class then you will get a compile time error. Sealed classes are declared using a sealed keyword as shown below. public sealed class sealedClassDemo    {     ...

Class and Object in C#

 Class and Object    Class in C# contains different data members and functions/methods and it binds them together. We can access the data members and functions of a class using objects of a class. Class is nothing but a blueprint of a object. You will better understand class by looking at following example.    public class Test    {      ...