using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Pannenkoekenhuis.Builder { class PannenkoekBuilder { public static string beschrijving; public static double prijs; public static int formaat; public static bool stroop; public static bool suiker; public static bool spek; public static bool kaas; public PannenkoekBuilder MaakPannenkoek(string beschr, double pr) { beschrijving = beschr; prijs = pr; formaat = 0; stroop = false; suiker = false; spek = false; kaas = false; return this; } public PannenkoekBuilder Formaat(int f) { formaat = f; return this; } public PannenkoekBuilder MetStroop() { stroop = true; return this; } public PannenkoekBuilder MetSuiker() { suiker = true; return this; } public PannenkoekBuilder MetSpek() { spek = true; return this; } public PannenkoekBuilder MetKaas() { kaas = true; return this; } public Pannenkoek Build() { return new Pannenkoek(this); } } }