Brian

24%
Flag icon
There are a number of obvious violations of this principle in the Java platform libraries. For example, a stack is not a vector, so Stack should not extend Vector.
Brian
Haven’t used stack so had no idea this was done. Wow. Though I admit there is definitely a period in my career when I would've considered this approach. But then again, I shouldn't have been writing the Java API then (nor even now, surely ;) ).
Effective Java
Rate this book
Clear rating
Open Preview