Does C# support multiple inheritance?

Skill/Topic: Intermediate
A) Yes
B) No

Showing Answers 1 - 13 of 13 Answers

samiksc

  • Dec 7th, 2005
 

No. C# does not support multiple inheritance. A class can inherit from maximum one base class, although it can implement any number of interfaces.

  Was this answer useful?  Yes

Meenu

  • Jul 10th, 2006
 

From MSDN..

Like Java, C# does not support multiple inheritance, meaning that classes cannot inherit from more than one class. You can, however, use interfaces for that purpose in the same way as in Java.

  Was this answer useful?  Yes

Prakash

  • Jul 10th, 2006
 

So far, C# is used in .Net framework only obiviously it cannot implement multiple inheritance.

  Was this answer useful?  Yes

C# does not support multiple implementation inheritance. A class cannot be derived from more than one class. However, a class can be derived from multiple interfaces.
Conclusion: the correct answer is that C# does support multiple inheritance as long there is only one base class and the others are interfaces.

  Was this answer useful?  Yes

nyome san

  • Jan 26th, 2015
 

No, C# does not support multiple inheritance.However, you can use interfaces to implement multiple inheritance.

  Was this answer useful?  Yes

Riki

  • Aug 31st, 2015
 

Well, C# does not support multiple inheritance of behaviors or properties but we can inherit types implementing interfaces. And because a class can implement multiple interfaces so we can have multiple inheritance of types. Yet in C# we can get close simulation multiple inheritance by the help of delegate.

  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