A place to keep my thoughts on programming

Tag Archives: control flow

How to do Control Flow via Polymorphism

Let’s say you have n objects implementing an interface. Call these message, implementing IMessage. Each message may cause a different action when given to another object, the receiver. Sounds like the perfect scenario for Polymorphism. Create a method Handle() for … Continue reading

June 12, 2007 .net , ,