Store in GIT
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user