title: How to implement overlapping inheritance in Java?
body: <p>I am wondering how to convert overlapping type of inheritance to Java. I got abstract class Person, and 2 extending subclasses:  Driver and Passenger. As you know, driver may also be a passenger. So the question is: what's the best way to implement overlapping in Java? I heard that the best way is to use the composition, but i don't know how to.</p>