Why multiple Inheritence is not used in C#?
Answer Posted / mayur teli
There is the classic diamond problem encountered in multiple inheritance, in which class D inherits from both B and C, which both inherit from A.
A
/ \
B C
\ /
D
So which copy of A does D get? The one from B, the one from C? Both? This way various languages resolve this problems is discussed here:
http://en.wikipedia.org/wiki/Diamond_problem
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the applications of c#?
Can we declare class as protected?
Enlist some of the properties of a thread class?
How can an inner class access the members of outer class?
How do you declare a variable in c#?
What is the system namespace?
What is the usage of OLE?
What is static noise?
What is Fragmentation and its Types?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
what is a destructor?
Why generics are used in c#?
What do you mean by jagged arrays in c#?
What is the difference between dispose() and finalize() methods in c#?
What is byte c#?