Jaaved Ali Khan

12%
Flag icon
Small methods also make inheritance work smoothly. If you decide to specialize the behavior of a class written with large methods, you will often find yourself copying the code from the superclass into the subclass and changing a few lines. You have introduced a multiple update problem between the superclass method and the subclass method. With small methods, overriding behavior is always a case of overriding a single method.
Jaaved Ali Khan
o: small methods make inheritence smooth.
Smalltalk Best Practice Patterns
Rate this book
Clear rating
Open Preview