If I nitpick at the author's response, am I then excluded from winning the book?
Originally posted by Ivor Horton:
interfaces provide a way to have multiple-inheritance of public methods.
Just to point out one glaring fact...
Public methods in an interface have no implementation. So, no implementation is inherited. As has been stated, the implementing class is agreeing to implement the methods in the interface - to provide the implementation.
I've run into more than one person new to Java and OOP for whom this concept was a bit confusing at first, because the book they were reading said something like: "...implementing provides multiple inheritance in Java..." - at least that's how the newbie interpreted what the book said.