static void Main(string[] args) { Factory factory = new IDCardFactory(); Product card1 = factory.Create("結城浩"); Product card2 = factory.Create("とむら"); Product card3 = factory.Create("佐藤花子"); card1.Use(); card2.Use(); card3.Use(); }
static void Main(string[] args) { Factory factory = new IDCardFactory(); Product card1 = factory.Create("Yamada"); Product card2 = factory.Create("Suzuki"); Product card3 = factory.Create("Takahashi"); card1.Use(); card2.Use(); card3.Use(); }
static void Main(string[] args) { Factory factory = new IDCardFactory(); Product card1 = factory.Create("Taro Tanaka"); Product card2 = factory.Create("Hanako Yamada"); Product card3 = factory.Create("Kenji Sato"); card1.Use(); card2.Use(); card3.Use(); Console.ReadLine(); }
static void Main(string[] args) { Factory factory = new IDCardFactory(); Product card1 = factory.Create("nyanchu"); Product card2 = factory.Create("thoshi0607"); card1.Use(); card2.Use(); Console.ReadLine(); }