示例#1
0
文件: Team.cs 项目: tvshevchuk/OOD
 public Team(AbstractFactory factory)
 {
     ball = factory.CreateBall();
     stadium = factory.CreateStadium();
 }
示例#2
0
 public Team(AbstractFactory factory)
 {
     ball    = factory.CreateBall();
     stadium = factory.CreateStadium();
 }