Skip to content

Instantly share code, notes, and snippets.

@TomerCohen95
Created October 16, 2018 12:18
public abstract class HotDrinkMaker
{
void PrepareRecipe()
{
this.BoilWater();
this.Brew();
this.PourInCup();
this.AddCondiments();
}
abstract void Brew();
abstract void AddCondiments();
void BoilWater()
{
Console.WriteLine(“Boiling water...”);
}
void PourInCup()
{
Console.WriteLine(“Pouring in cup...”);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment