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
Why do we write system in c#?
What is using directive in c#?
What is msil in c#?
Can firstordefault return null?
What is sorting in c#?
Which one is trusted and which one is untrusted?
Why extension method is static?
Write one code example for compile time binding and one for run time binding? What is early/late binding?
What is the use of console?
What is the main purpose of linq?
What is object array in c#?
What is the difference between const and readonly in c#.net?
the c# keyword .int. Maps to which .net type?
What is scaffolding in c#?
What are the different types of constructors in c#?