Store in GIT
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Pannenkoekenhuis.Factory;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pannenkoekenhuis.Singleton
|
||||
{
|
||||
class FactoryFactory
|
||||
{
|
||||
private static PannenkoekenFactory kfactory { get; set; }
|
||||
|
||||
public static PannenkoekenFactory KaasInstance()
|
||||
{
|
||||
if (kfactory == null)
|
||||
kfactory = new KaasPannenkoekFactory();
|
||||
return kfactory;
|
||||
}
|
||||
|
||||
|
||||
private static PannenkoekenFactory sfactory { get; set; }
|
||||
|
||||
public static PannenkoekenFactory StroopInstance()
|
||||
{
|
||||
if (sfactory == null)
|
||||
sfactory = new StroopPannenkoekFactory();
|
||||
return sfactory;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user