Exemplo n.º 1
0
 public Bombero(IEstrategy pEstrategia)
 {
     this.estrategia = pEstrategia;
 }
Exemplo n.º 2
0
 public void setEstrategia(IEstrategy estrategia)
 {
     this.estrategia = estrategia;
 }
Exemplo n.º 3
0
        //*************************************************************************************************************************

        //SOBRECARGA DE CONSTRUCTORES

        public Bombero(Manejador manejador, IEstrategy estrategia, IHerramienta herramienta, IVehiculo vehiculo) : base(manejador)
        {
            this.estrategia  = estrategia;
            this.herramienta = herramienta;
            this.vehiculo    = vehiculo;
        }