Java does not support multiple inheritance, at least not for classes. It does allow implementing multiple interfaces. This made me wonder how it would deal with methods that collide with eachother. What probably made it even more tricky is the fact that interfaces can now have default implementations. What if two interfaces define the same method, but with a different default implementation? Let's find out in this blog post.

Read more of this post


This free site is ad-supported. Learn more
chrisvesters | December 5, 2021 at 9:00 am | Tags: Design, Development, Java, Language Features, Object Oriented | Categories: Development | URL: https://wp.me/p6oy6N-1jz
Comment        Like