Multiple inheritance in Java by interface
source link: https://uzairadamjee.com/blog/index.php/2018/03/04/multiple-inheritance/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Multiple inheritance in Java by interface
/
March 4, 2018
Multiple inheritance is not supported in case of class because of ambiguity. But it is supported in case of interface because there is no ambiguity as implementation is provided by the implementation class.
When a class implements multiple interfaces, or an interface extends multiple interfaces i.e. known as multiple inheritance.
Do check this post for detail explanation
https://www.geeksforgeeks.org/java-and-multiple-inheritance/
Related Posts
Leave a Reply Cancel reply
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK