Does Java support multiple inheritance?

preview_player
Показать описание
does Java supports multiple inheritance? If not, why?

Notes:
Q. Does Java support multiple inheritance?

A. To avoid ambiguity and confusion, Java does not support.
i.e., a class can not extend more than one class.
For example,
if Class C extends Class A and Class B which have a method
with same name, then Class C will have two methods with same name.
This causes ambiguity and confusion for which method to use.

To avoid this, Java does not support multiple inheritance.
Рекомендации по теме
Комментарии
Автор

please make more videos...it is helpful

minakshigulia
Автор

Your videos are helping for the interview, thanks a lot
Can you please share notes in the description or Git, thanks

shailajae
visit shbcf.ru