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
How to put assembly in gac?
Is struct object oriented?
Will the following code compile?
What is the difference between read and readline in c#?
What is an int c#?
What is console write in c#?
Can we inherit a class with private constructor in c#?
How do I count the length of a string in c#?
What is cshtml?
What is the difference between method and function in c#?
What are the benefits of using the aggregate method in linq?
When should I use static in C#?
What is a service layer c#?
What is the difference between firstordefault and singleordefault?
What exception can an overridden method throw in comparison with the method it is overriding?