Saturday, October 6, 2007

MallardDuck.cs

public class MallardDuck : Duck
{
public MallardDuck()
{
quackBehavior = new Quack();
flyBehavior = new FlyWithWings();

}
public override object Display() { return "I'm a real Mallard duck"; }
}
blog comments powered by Disqus