Problems of multiple class inheritance in C sharp Arabic #33

 


Problems of multiple class inheritance in C sharp Arabic #33

Suggested Videos

Abstract Classes VS Interfaces in C sharp Arabic #32

❑ About the problems of multiple class inheritance.



Multiple Class Inheritance Problem


1. Class B and Class C inherit from Class A.
2. Class D inherits from both B and C.
3. If a method in D calls a method defined in A (and does not override the method ), and B and C have overridden that method differently , then from which class does it inherit: B, or C?
the ambiguity is called as Diamond problem.



Multiple Class Inheritance Problem

Follow Us

YouTube

 If you want to download pptx : click Telegram

Facebook

Twitter

Instagram

Tik Tok

إرسال تعليق

أحدث أقدم