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