Inheritance
Taking the properties of one class into another class is called inheritance.
Types of inheritance in C#
âĸSingle
âĸHierarchical
âĸMultilevel
âĸMultiple inheritance using Interfaces
Single inheritance
âĸIt is the type of inheritance in which there is one base class and one derived class.

âĸThis is the type of inheritance in which there are multiple classes derived from one base class. This type of inheritance is used when there is a requirement of one class feature that is needed in multiple classes.

âĸWhen one class is derived from another derived class then this type of inheritance is called multilevel inheritance.

Multiple inheritance using Interfaces
âĸC# does not support multiple inheritances of classes. To overcome this problem we can use interfaces, we will see more about interfaces in my next article in detail.
