C# Interface inheritance

Sanitsharma
1 min readFeb 10, 2021

--

This Report Clarifies the following:

The way to use a port in C#? What’s an interface? What’s the very best illustration of an interface? The way to use a port I expect everyone is very knowledgeable about OOP concepts in C++. Inheritance allows creating courses which are derived from different classes, so they automatically incorporate a number of its "parent” associates, and its own. Listed below are kinds of inheritances.

Multi-Level Inheritance

  1. class Father {
  2. //Father Relations — Members
  3. }
  4. class Mother: Father {
  5. //Mother Relations — Members
  6. }
  7. class Child: Mother //Multi- Level Inheritance
  8. {
  9. //Accessing both Relations class members.
  10. }

Multiple Inheritance

  1. class Father {
  2. //Father Relations — Members
  3. }
  4. class Mother {
  5. //Mother Relations — Members
  6. }
  7. class Child: Mother, Father //Multiple Inheritance
  8. {
  9. //Accessing both Relations class members.
  10. }

This type of multiple inheritance is possible in C++ but it’s not possible in C#.

By Pranit Seva ( I written other c# interface related articles )

--

--

Sanitsharma
Sanitsharma

Written by Sanitsharma

What would it be like to make a service that lasts for 10 years? 100 years? That’s what we’re trying to build. We’re as sick as you are to have to

No responses yet