Why Multiple inheritance is not supported in C# | dgTraining

Why Multiple inheritance is not supported in C# | dgTraining

dg Training

4 года назад

3,956 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@vilaspawara6690
@vilaspawara6690 - 19.02.2023 20:03

Nice explanation

Ответить
@AbhinavKumar-ul8ux
@AbhinavKumar-ul8ux - 10.02.2023 12:02

Great explanation
suppose we have two interfaces A and B, both having same Add() method
And we are implementing it in a class ABC
Now the obj of ABC is calling the Add() method ,
The question is, which Add() method will be called now ? Will it be from interface A or form Interface B ?

Ответить
@repakulasowjanya5829
@repakulasowjanya5829 - 04.12.2022 14:22

What If we have two different functions in class A and class B?

Ответить
@tejashreemadake9243
@tejashreemadake9243 - 03.06.2021 13:42

short and simple example :) Thanks!!

Ответить