コード例 #1
0
 public Client(PhoneFactory mobFac)
 {
     scr = mobFac.CreateScreen();
     prc = mobFac.CreateProcessor();
 }
コード例 #2
0
 public Client(PhoneFactory factory)
 {
     p  = factory.GetPhone();
     sp = factory.GetSmartPhone();
 }