Esempio n. 1
0
        public Auto()
        {
            this.fabricante = (Efabricante)rnd.Next(0, 3);
            this.rdDD       = new Rueda();
            this.rdDI       = new Rueda();
            this.rdTI       = new Rueda();
            this.rdTD       = new Rueda();

            Auto.ContadorDeobjetos++;
        }
Esempio n. 2
0
 public Auto()
 {
     this._fabricante     = (Efabricante)_rnd.Next(0, 3);
     this.rdDD            = new Rueda();
     this.rdDI            = new Rueda();
     this.rdTI            = new Rueda();
     this.rdTD            = new Rueda();
     this._kmRecorridos   = 0;
     this._tiempoDemorado = 0;
     Auto.ContadorDeobjetos++;
 }
Esempio n. 3
0
        public Auto()
        {
            int num = rdm.Next(0, 2);

            this.fabricante     = (Efabricante)num;
            this.kmRecorridos   = 0;
            this.tiempoDemorado = 0;
            this.DI             = new Rueda();
            this.DD             = new Rueda();
            this.TI             = new Rueda();
            this.TD             = new Rueda();
            Auto.contadorDeObjetos++;
        }
Esempio n. 4
0
 public Auto(string nombre, Efabricante fabricante) : this()
 {
     this._nombrePiloto = nombre;
     this._fabricante   = fabricante;
 }