What is the best way to replace or substitute if..else if..else trees in programs?

These constructs can often be replaced by polymorphism. This will give you shorter and less brittle code.

Leave a Comment