C# : Diamond problem : Part 13
- Class B and C inherits from class A.
- Class D inherits from Class B and C.
- If class D call a method from Class A, there will be ambiguity as there are 2 instance formed of Class B and Class C.
- There will be condition rising if to call the method from Class B or Class C.
- This is called diamond problem
- C# does not has Diamond Problem as it does not supports Multiple class inheritance
No comments