Skip to content

Commit e9a8913

Browse files
authored
Add files via upload
1 parent 154d6e6 commit e9a8913

File tree

1 file changed

+22
-0
lines changed
  • CSharp-Design-Patterns/FactoryDesignPattern/FactoryDesignPattern

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using FactoryDesignPattern.Classes;
7+
8+
namespace FactoryDesignPattern
9+
{
10+
class Program
11+
{
12+
static void Main(string[] args)
13+
{
14+
Creator c = new Creator();
15+
16+
IProduct product1 = c.FactoryMethod(ProductType.Product1);
17+
Console.WriteLine(product1.siparisFormu());
18+
19+
Console.ReadKey();
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)