Store in GIT
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Strategy_Kassabon;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis
|
||||
{
|
||||
public class PannenkoekDecorator : Pannenkoek
|
||||
{
|
||||
protected Pannenkoek pannenkoek;
|
||||
|
||||
public PannenkoekDecorator(Pannenkoek p, string beschrijving, double prijs) : base(beschrijving, prijs)
|
||||
{
|
||||
this.pannenkoek = p;
|
||||
this.status = Status.NULL;
|
||||
}
|
||||
|
||||
public double GetPrijs()
|
||||
{
|
||||
return Prijs + (pannenkoek == null ? 0 : pannenkoek.Prijs);
|
||||
}
|
||||
|
||||
public new string Beschrijving
|
||||
{
|
||||
get
|
||||
{
|
||||
if (pannenkoek == null)
|
||||
return Beschrijving + " met ";
|
||||
else
|
||||
return pannenkoek.Beschrijving + ", " + Beschrijving;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user