This question already has an answer here:
Can someone help me understand why they would add Default in Java 8 to allow implementation to interfaces instead of just allowing us to have multiple inheritance in abstract classes? What exactly is the difference between just allowing us to extend multiple classes verses allowing us to create Default methods in interfaces?
Aucun commentaire:
Enregistrer un commentaire