By bloid
via blogs.sun.com
Published: Mar 13 2008 / 10:55
A typical example shown to explain the use of extends has to do with drawing shapes. Instead, this tech tip will use an example that uses Swing components so that you do not have to create extra new classes. In a very limited case, the class hierarchy for Swing button components is shown here, with Object as the real root
Comments
dzonelurker replied ago:
Wildcards and Extends obfuscate the code. I would avoid them unless absolutely necessary.
Voters For This Link (15)
Voters Against This Link (0)