Difference between abstract class and interface in C#.

The difference between abstract class and interface can be described in following table: Interface Abstract class Interface support multiple inheritance Abstract class does not support multiple inheritance Interface doesn’t Contains Data Member Abstract class contains Data Member Interface doesn’t contains Constructors Abstract class contains Constructors An interface Contains only incomplete member (Events, properties, methods, indexers) […]

Read More

Inheritance in C#.

Inheritance, together with encapsulation and polymorphism, is one of the three primary characteristics (or pillars) of object-oriented programming. Inheritance enables you to create new classes that reuse, extend, and modify the behavior that is defined in other classes. The class whose members are inherited is called the base class, and the class that inherits those […]

Read More