Example #1
0
 public abstract Sweet FactoryMethod(string marshmallowName, double marshmallowWeight, double marshmallowSugar, int marshmallowCount, TasteMarshmallow taste);
Example #2
0
 public override Sweet FactoryMethod(string marshmallowName, double marshmallowWeight, double marshmallowSugar, int marshmallowCount, TasteMarshmallow taste)
 {
     return(new Marshmallow(marshmallowName, marshmallowWeight, marshmallowSugar, marshmallowCount, taste));
 }
Example #3
0
 public override Sweet FactoryMethod(string marshmallowName, double marshmallowWeight, double marshmallowSugar, int marshmallowCount, TasteMarshmallow taste)
 {
     throw new NotImplementedException();
 }
Example #4
0
 public Marshmallow(string marshmallowName, double marshmallowWeight, double marshmallowSugar, int marshmallowCount, TasteMarshmallow taste)
     : base(marshmallowName, marshmallowWeight, marshmallowSugar, marshmallowCount)
 {
     this.taste = taste;
     Sug        = marshmallowSugar;
 }