2 ms·
Greenlight if-branches and switch statements OO cowboys will want to have a whole polymorphic soup of collaborating objects Of Course! When I implement, say,
by rincewind 17y ago
Greenlight if-branches and switch statements
OO cowboys will want to have a whole polymorphic soup of collaborating objects
Of Course! When I implement, say, Bubble Sort, I do not implement the classes BubbleList with the methods sort and addObject: anObject and BubbleObject with the method bubbleMaybe: aBubbleList, just to see my tests for BubbleObject fail when I switch to Quicksort.