Example #1
0
        // 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();
        }