Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            HamAndCheese hamAndCheese = new HamAndCheese();

            SandwichMaker sandwichMaker = new SandwichMaker(hamAndCheese);

            sandwichMaker.buildSandwich();


            Sandwich sandwich = hamAndCheese.Sandwich;

            sandwich.Show();
        }
 public TurkeyClub()
 {
     sandwich = new Sandwich("Turkey Club");
 }
Ejemplo n.º 3
0
 public BLT()
 {
     sandwich = new Sandwich("BLT");
 }
Ejemplo n.º 4
0
 public HamAndCheese()
 {
     sandwich = new Sandwich("Ham and Cheese");
 }