Created
October 16, 2018 12:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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