Map
Index
Random
Help
th

Quote: prefer interfaces over inheritance; unless designed for inheritance, avoid using methods that may be overridden

QuoteRef: blocJ_2001 , p. 82



Topic:
interface type
Group:
type inheritance

Quotation Skeleton

The best solution [to inheritance limitations] is to prohibit subclassing … If a class implements some interface that captures … subclassing. … [Alternatively, you may] ensure that the class never invokes any …   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: interface type (50 items)
Group: type inheritance   (13 topics, 394 quotes)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.