Why multiple Inheritence is not used in C#?

Answer Posted / a b

Implementing from multiple interfaces is not true multiple
inheritance. The objective of inheritance is code reuse,
which is attained only when the base class contains that
code. But since an interface does not contain any code code
at all, there's no code reuse happening at all. Instead, an
implementing class needs to provide code for each and every
method defined in a class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to achieve polymorphism in c#?

542


What is dll file in c#?

519


How many types of delegates are there in c#?

462


What is meant by clr?

567


Is array value type in c#?

582






What is native image generator (ngen.exe)?

648


How Reflection is used and what it's significance ?

520


Does a loop recorder have to be removed?

591


Is dll a library?

485


Can you declare a class or a struct as constant?

540


Explain more on CLR

747


Is c# difficult to learn?

483


What's the c# syntax to catch any possible exception?

488


What's your approach to fetch static data in your windows form application?

505


Write a short note on interface?

580