Inheritance: TemplatePattern.Bread
Exemplo n.º 1
0
        static void Main(string[] args)
        {
            SourDough sourdough = new SourDough();

            sourdough.Make();

            TwelveGrain twelveGrain = new TwelveGrain();

            twelveGrain.Make();

            WholeWheat wholeWheat = new WholeWheat();

            wholeWheat.Make();
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            var twelveGrain = new TwelveGrain();
            var sourDough   = new SourDough();
            var wholeWheat  = new WholeWheat();

            Delimiter();
            twelveGrain.Make();
            Delimiter();
            sourDough.Make();
            Delimiter();
            wholeWheat.Make();
            Delimiter();
        }