Beispiel #1
0
 public void agregarRueda(IRueda rueda)
 {
     if (this.ruedas.Count == 5)
     {
         throw new Exception("Máximo 5 ruedas");
     }
     this.ruedas.Add(rueda);
 }
Beispiel #2
0
 public void ColocarRuedas(IRueda rueda)
 {
     this.rueda = rueda;
     Console.WriteLine($"Se han colocado las ruedas: {rueda.MostrarDetalles()}");
 }