How many types of Inheritance is there in C#?

HI,
Can youplz tell me how many types of Inheritance is there in C#?
As per my knowledge these are following but i am not sure
-single level
-multi level
-Hierarchical inheritence
-Hybride inheritence.
there one more inheritence but its not suported by C# that is Multiple inheritence.
is it correct ?plz help me.

Questions by sweetysmarty   answers by sweetysmarty

Showing Answers 1 - 15 of 15 Answers

pm

  • Sep 13th, 2011
 

In addition to that based on access criteria Public Inheritance, Private Inheritance, protected Inheritance and based on types Interface Inheritance & class Inheritance.

  Was this answer useful?  Yes

Taruna

  • Sep 23rd, 2011
 

Only Single inheritance is support by the .NEt. but It can support multiple inheritance system by using Interface like.

interface I1
{
}

interface I2
{
}
interface I3
{
}

class Program: I1,I2,I3
{
}

  Was this answer useful?  Yes

nayan21

  • Oct 31st, 2011
 

C# supports only single inheritance.
Using interfaces will help you to implement multiple inheritance in C#.

  Was this answer useful?  Yes

Kajul Nisha

  • Jun 14th, 2019
 

as per my knowledge, C# supports the following inheritance
1. single
2.multi-level
and
it doesn't support multiple inheritance
but it can be achieved by interfaces

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions