Diamond/Ambiguity problem of multiple inheritance due to Default methods in Java 8 [ SOLVED !! ]

  Рет қаралды 38,538

Code Decode

Code Decode

Күн бұрын

Пікірлер: 22
@shubhamtagalpallewar7125
@shubhamtagalpallewar7125 4 жыл бұрын
getting clarity of concepts with your videos.. good work :)
@CodeDecode
@CodeDecode 4 жыл бұрын
thanks for the nice words :)
@VijayKumar-bc7fu
@VijayKumar-bc7fu 2 жыл бұрын
hey @Code Decode can you plz tell if this is the only way to resolve diamond issue in java 8 or later versions
@armediaworks4372
@armediaworks4372 3 жыл бұрын
I got a doubt over riding is known only in the run time right how can you find the error at the compile time
@KeshariPiyush24
@KeshariPiyush24 Жыл бұрын
Actually overriding is runtime polymorphism you are right about it but it does not mean that the compiler can't know about it in advance. Actually by overriding we mean which implementation to call it depends upon the kind of object you are calling and that's it.
@subbhalakshmiravichandran3808
@subbhalakshmiravichandran3808 2 жыл бұрын
really u r great. Programming god and what ever u explains really easily & understandable.
@CodeDecode
@CodeDecode 2 жыл бұрын
Thanks Subbhalakshmi 🙂👍
@prakashksk861
@prakashksk861 4 жыл бұрын
We can give our own implementation in the livesin default method in the frog class also right??
@CodeDecode
@CodeDecode 4 жыл бұрын
Here basically I have shown you over ridden method in frog class. And default method is a concept of interface not a class. Frog is a class and aquatic and terrestrial animals are interfaces. Hence lives in default method is written in interfaces and not in frog class
@prakashksk861
@prakashksk861 4 жыл бұрын
Got it. Thank u 🙂
@CodeDecode
@CodeDecode 4 жыл бұрын
Any thing else I can help you with?
@prakashksk861
@prakashksk861 4 жыл бұрын
@@CodeDecode what are the new features in garbage collector from java 8.
@desaiaditya12
@desaiaditya12 3 жыл бұрын
Nice explanation. But can you explain how super helps in this case?
@chaitanyapatil9692
@chaitanyapatil9692 3 жыл бұрын
super keyword is used to invoke parent class's or interface's methods or variables !!!
@mpsarun7210
@mpsarun7210 2 жыл бұрын
At time 3:35 it is implementing multiple interfaces right ? But I could listen it as multiple inheritance. Please correct me if am wrong
@VijayKumar-bc7fu
@VijayKumar-bc7fu 2 жыл бұрын
thats how multiple inheritance is handled
@rohitverma8184
@rohitverma8184 Жыл бұрын
English bhoot achi hai madam
@CodeDecode
@CodeDecode Жыл бұрын
Thanks Rohit😊👍
@sachinsinghania7806
@sachinsinghania7806 4 жыл бұрын
Didi.. itna tough class name mt lo.. confuse ho jata hun.. Easy class name rakha kro
@CodeDecode
@CodeDecode 4 жыл бұрын
Ok. No worries. Next time se easy class names rakhnge hum.
@start1learn-n171
@start1learn-n171 9 ай бұрын
Tq
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 50 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 8 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 45 МЛН
Java's Creators Rejected Multiple Inheritance - Here's Why
13:14
Coding with John
Рет қаралды 70 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 968 М.
#50 Multiple Inheritance in Java
6:36
Telusko
Рет қаралды 93 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН