// Code using the template method pattern void flyTheDucks_Click(object sender, EventArgs e) { Duck mallard = new MallardDuck(); mallard.Migrate(); Duck mandarin = new MandarinDuck(); mandarin.Migrate(); }
// Code using the template method pattern void flyTheDucks_Click(object sender, EventArgs e) { Duck mallard = new MallardDuck(); mallard.Migrate(); Duck mandarin = new MandarinDuck(); mandarin.Migrate(); }