Exemplo n.º 1
0
 public Hero(HeroFactory factory)
 {
     this.weapon   = factory.CreateWeapon();
     this.movement = factory.CreateMovement();
 }
Exemplo n.º 2
0
 public Hero(HeroFactory factory)
 {
     weapon   = factory.CreateWeapon();
     movement = factory.CreateMovement();
 }