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++; }
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++; }
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++; }
public Auto(string nombre, Efabricante fabricante) : this() { this._nombrePiloto = nombre; this._fabricante = fabricante; }