Multiple Inheritance in Java ? NO (Ambiguity Problem)

preview_player
Показать описание
Java Doesn't Support Multiple Inheritance because of Ambiguity Problem.
But Using Interface we can use Multiple Inheritance.

Subscribe to the channel and learn Programming in easy way.

Рекомендации по теме
Комментарии
Автор

Excellent sir. Its lot of easy to understand. Thanks sir 😇

AkashM
Автор

It means that the multiple inheritance problem occurs when there are duplicate methods in the parents.Lets say there is no any methods/fields in A, B and C then in this case whether multiple inheritance would be possible?

sagarshekhar
Автор

Ohhh, i got the perfect reason, why multiple inheritence not support in java. Thank for this video

prashanthanantha
Автор

what if we write
A obj1=new C(); 
B obj2=new C();
//we can call
obj1.show();
obj2.show();
which doesn't have any confusion right? can you please enlighten me.

rajam
Автор

Whenever I have any doubt in Java, the first channel that I look for is urs. Thank u for making things simpler and easy to digest.

sreejitha
Автор

Multiple inheritance is quite similar to interface? 

hasanshafy_
Автор

you explanation is simple and perfect ..after 4 year I got to know the perfect reason why multiple inheritance not support

yogeesh
Автор

Thank u sir, I am very confused and exited to know about why doesn't java support multiple inheritance, but now I got a clarity after watching this video thank u so much sir

kokkkiligaddasagarsagar
Автор

Sir, you are a great teacher! God bless you!

bakralbakri
Автор

Thanks a lot sir...Very Nice explanation about Inheritance concept.

amdocssharma
Автор

As per your video Ambiguity problem, 2 parent class same method contain karti h isly h but yadi parent class alg alg method contain kare to ....Question abhi bhi pendding h why C support Multiple Inheritance why not java...

Yuvaan_Rajpoot
Автор

Sir, then how does multiple inheritance support in c++

satyanarayanagouda
Автор

i studied for my IT exam form your videos it really helped so thank you

Waywarddrawings
Автор

As you said for example B class does not have show() method it has hello() method then is java support multiple inheritance??? I hope you give reply fast

madhukumar
Автор

I have question of same in interface what will happen in same scenario of method but Justin interface??

rajeshbakade
Автор

Can we use virtual as we used this in c++

nikhilsehgal
Автор

amazing way of teaching..easy to understand your way of teaching..thankuu so much..keep posting sir..

amrithavj
Автор

Thanks a lot, really nice explanation

sachindilan
Автор

Also I have one doubt that if I want to implement class named as A.java with two interfaces (B, C) have same method as Display(). Then how many methods iam going to implement??

madhukumar
Автор

You are very good in explaining . Thanks for uploading it

sallajeclow
welcome to shbcf.ru