When Polymorphism Fails
steve.yegge.googlepages.com
steve.yegge.googlepages.com
If the requirement was to show which classes should be used and the result is a series of conditionals or function pointers (even if they are wrapped in a single "operator" class), I'd say the requirements have not been met. To me, "classes" implies doing it with a class hierarchy or polymorphism.