#41 Interface in Java | In Tamil | Java Tutorial Series | Error Makes Clever

preview_player
Показать описание
In our previous video, we explored various types of inheritance in Java, and now we're heading into topic of multiple inheritance as mentioned previously in #33.

In this video, we have explained why Java doesn't support multiple inheritance directly with classes, despite its usefulness in other programming languages.

You’ll learn about the limitations of Multiple Inheritance and also understand the reasons behind Java's decision to avoid multiple inheritances with classes, including the complexities and potential issues it can introduce.

And also You will discover the diamond problem and why it causes challenges in languages that support multiple inheritance. Also, we’ll explain how this issue arises.

Finally, you will find out how Java uses interfaces to provide a way to achieve similar benefits to multiple inheritance without the associated problems and Learn how interfaces allow you to define common behaviours that multiple classes can implement, offering a cleaner and more manageable approach.

Join us to gain a comprehensive understanding of why Java handles multiple inheritance the way it does, and see how interfaces play a crucial role in managing complex relationships in your code.

#javaprogramming #javatutorial #errormakesclever #interface #codinglife
Рекомендации по теме
Комментарии
Автор

Bro pakka va purinchuthu tomorrow exam oops .wonderful teaching thanks for the wonderful video anna 🫂✨

magesh_
Автор

Pl expalin How does this solve that diamond problem ND real world example...like bank interface which gets implemented by sbi meaning.. rbi ll share the interface details to those bank or how it works Pl explain

Kkarthi-ox
Автор

Please explain interface how to accept the multiple inheritance?

Sidhu_likes
Автор

interface player{
void play();
}
class guitor implements player{
public void play(){

}
}
class panio implements player{
public void play(){
System.out.println("AR rahaman");
}
}

public class main{
public static void main(String[] args){
guitor g=new guitor();
panio p=new panio();
g.play();
p.play();
}
}

Buvanesh.V
Автор

Intha diamand problem python la epdi solve pandrathu 🤔

Goldencupid
Автор

Sorry you missed to tell this one, Interface ah class ku implements pannum pothu Interface la iruka methods ah must be in Public, Public illa ma empty ah same method ah define pannalum error varum, So Implements panna Same methods must be in Public, Neega itha pannirukinga but sollala bro, I'm also your Student👍

sbarani
Автор

Bro what are you doing bro why delay for more days

CSESheikMohaideen
Автор

Anna collections in java video poduga please

sathishkraja
Автор

what is the difference between abstract class and interface

divya_bhagya_anandan