Exemple #1
0
 public HamAndCheese()
 {
     sandwich = new Sandwich("Ham and Cheese");
 }
Exemple #2
0
 /// <summary>
 /// implementing the filed of the abstract class of Sandwich
 /// </summary>
 public TurkeyClub()
 {
     // creating a new Sandwich and passing it the name of the class as the Sandwich type
     sandwich = new Sandwich("Turkey Club");
 }
Exemple #3
0
 public BLT()
 {
     sandwich = new Sandwich("BLT");
 }