Remember styles of inheritance

A class has supertypes: the class it extends, plus any interfaces it implements. A supertype can have 3 different policies for how the implementation of a method is treated:

A class can take these general policies with respect to overriding, in order of increasing liberality:


See Also :
Use final liberally
Designing for subclassing
Overridable methods need special care
Would you use this technique?
Yes   No   Undecided   
© 2014 Hirondelle Systems | Source Code | Contact | License | RSS
Individual code snippets can be used under this BSD license - Last updated on September 21, 2013.
Over 2,000,000 unique IPs last year - Built with WEB4J.
- In Memoriam : Bill Dirani -