6) Designing the Duck Behaviors
We will use an interface to represent each behavior - IFlyBehavior and IQuackBehavior, and then We'll make a set of classes whose entire reason for living is to represent a behavior, e.g. FlyWithWings and FlyNoWay will implement the IFlyBehavior interface.
Saturday, October 6, 2007
blog comments powered by Disqus
Subscribe to:
Post Comments (Atom)