C#

What is Inheritance!

What is Inheritance! | TechTweet
Avatar of shohal
Written by shohal

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.

What is Inheritance! | TechTweet
Hierarchical inheritance

•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.

What is Inheritance! | TechTweet
  Multilevel inheritance

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

What is Inheritance! | TechTweet
What is Inheritance! | TechTweet

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.

What is Inheritance! | TechTweet
What is Inheritance! | TechTweet

About the author

Avatar of shohal

shohal

I have profession and personal attachment with custom ERP Software development, Business Analysis, Project Management and Implementation almost (36) ,also Oracle Apex is my all-time favorite platform to developed the software. Moreover i have some website development experience with WordPress. For hand on networking experience DevOps and CCNA, it create me a full package. Here are some core programming language with networking course i have been worked: Oracle SQL ,PL/SQL,Oracle 19c Database , Oracle Apex 20.1,WordPress,Asp.Net ,MS SQL ,CCNA ,Dev Ops, SAP SD

Leave a Comment