Java lets one class extend another to inherit fields and methods while specializing specific behaviors. Unlike C++, Java permits extending only a single superclass so hierarchies never suffer from the ambiguous diamond of state inheritance.
More lessons in Complete Core Java