forked from abishekaditya/DesignPatterns
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
Latest commit
18 lines (17 loc) · 436 Bytes
/
Copy pathProgram.cs
File metadata and controls
18 lines (17 loc) · 436 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
usingSystem;
namespaceFactoryPattern
{
staticclassProgram
{
staticvoidMain()
{
Console.WriteLine("Yankees fan orders:");
varyankees=newNyPizzaFactory();
yankees.Order("Cheese");
Console.WriteLine();
Console.WriteLine("Cubs fan orders:");
varcubs=newChicagoPizzaFactory();
cubs.Order("Clam");
}
}
}