Inheritance versus composition in Java
This article illustrates the concepts of inheritance and composition in Java. The first example will help you understand inheritance. The later examples will help you understand how to use composition to improve your use of inheritance.
Multiple inheritance in Java. Comparison of composition and inheritance
This article examines multiple inheritance and then explores the benefits of composition over inheritance.