aspose file tools*
The moose likes Features new in Java 8 and the fly likes For Richard Reese: multiple inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "For Richard Reese: multiple inheritance" Watch "For Richard Reese: multiple inheritance" New topic
Author

For Richard Reese: multiple inheritance

Martin Bechtle
Greenhorn

Joined: Nov 17, 2011
Posts: 12
Hello, I just looked at the description and table of contents of your book. I noticed that you cover the new multiple inheritance feature. I was wondering what your thoughts are on such a new feature in Java, as multiple inheritance has always been seen as something bad as it leads to bad software architecture and difficult compiler implementation.
Richard Reese
author
Ranch Hand

Joined: Jul 13, 2011
Posts: 84
    
    5

Martin,

Thanks for the question. Multiple inheritance between interfaces has always been possible. Multiple inheritance between classes has not been, and is still not possible in Java. The introduction of default methods in Java 8 has complicated the multiple inheritance between interfaces but it is not that hard to understand.
To answer your question, I don’t have strong feelings about whether this addition to Java is good or bad. As with most language features, it can be abused, misused or made difficult to understand. If the benefit of using multiple inheritance outweighs the potential maintenance issues, then it is probably worth the effort.

Richard


Richard Reese
Java 8 New Features: A Practical Heads-Up Guide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: For Richard Reese: multiple inheritance