Files
2026-06-17 15:58:48 +02:00

42 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Pannenkoekenhuis.Builder
{
class Pannenkoek
{
private string beschrijving;
private int formaat;
private double prijs;
private bool stroop;
private bool suiker;
private bool spek;
private bool kaas;
public Pannenkoek(string beschrijving, int formaat, double prijs, bool metStroop, bool metSuiker, bool metSpek, bool metKaas)
{
this.beschrijving = beschrijving;
this.formaat = formaat;
this.prijs = prijs;
this.stroop = metStroop;
this.suiker = metSuiker;
this.spek = metSpek;
this.kaas = metKaas;
}
public Pannenkoek(PannenkoekBuilder builder)
{
this.beschrijving = PannenkoekBuilder.beschrijving;
this.formaat = PannenkoekBuilder.formaat;
this.prijs = PannenkoekBuilder.prijs;
this.stroop = PannenkoekBuilder.stroop;
this.suiker = PannenkoekBuilder.suiker;
this.spek = PannenkoekBuilder.spek;
this.kaas = PannenkoekBuilder.kaas;
}
}
}