C# Class TemplateMethodPattern.Hoagie

Show file Open project: marwie/Design-Patterns-in-Unity-Example

Public Methods

Method Description
MakeSandwich ( ) : void

Protected Methods

Method Description
AddCheese ( ) : void
AddCondiments ( ) : void
AddMeat ( ) : void
AddVegetables ( ) : void
CustomerWantsCheese ( ) : bool
CustomerWantsCondiments ( ) : bool
CustomerWantsMeat ( ) : bool
CustomerWantsVegetables ( ) : bool
CutBun ( ) : void
WrapTheHoagie ( ) : void

Method Details

AddCheese() protected abstract method

protected abstract AddCheese ( ) : void
return void

AddCondiments() protected abstract method

protected abstract AddCondiments ( ) : void
return void

AddMeat() protected abstract method

protected abstract AddMeat ( ) : void
return void

AddVegetables() protected abstract method

protected abstract AddVegetables ( ) : void
return void

CustomerWantsCheese() protected method

protected CustomerWantsCheese ( ) : bool
return bool

CustomerWantsCondiments() protected method

protected CustomerWantsCondiments ( ) : bool
return bool

CustomerWantsMeat() protected method

protected CustomerWantsMeat ( ) : bool
return bool

CustomerWantsVegetables() protected method

protected CustomerWantsVegetables ( ) : bool
return bool

CutBun() protected method

protected CutBun ( ) : void
return void

MakeSandwich() public method

public MakeSandwich ( ) : void
return void

WrapTheHoagie() protected method

protected WrapTheHoagie ( ) : void
return void