public void SetColor(string newColor)
public void SetModelo(string newModelo)
public void SetAño(int newAño)
public void SetMarca(string newMarca)
public void SetPais(string newPais)
public string GetModelo()
public void SetNewVehiculo(string newColor, string newModelo, int newAño, string newMarca, string newPais)
public class Aereo : Vehiculo
public string NombreDeLaNave;
public void SetNHelices(int newNHelices)
this.NHelices = newNHelices;
public void SetCabinas(int newCabinas)
this.Cabinas = newCabinas;
public void SetNombreDeLaNave(string newNombreDeLaNave)
this.NombreDeLaNave = newNombreDeLaNave;
public void SetAsientos(int newAsientos)
this.Asientos = newAsientos;
public string GetNombreDeLaNave()
return this.NombreDeLaNave;
public void SetNewAereo(int newNHelices, int newCabinas, string newNombreDeLaNave, int newAsientos)
this.NHelices = newNHelices;
this.Cabinas = newCabinas;
this.NombreDeLaNave = newNombreDeLaNave;
this.Asientos = newAsientos;
public class Terrestre : Vehiculo
public void SetNLlantas(int newNLlantas)
this.NLlantas = newNLlantas;
public void SetTamañoRin(int newTamañoRin)
this.TamañoRin = newTamañoRin;
public void SetPlaca(string newPlaca)
public void SetNewTerrestre(int newNLlantas, int newTamañoRin, string newPlaca,string newColor, string newModelo, int newAño, string newMarca, string newPais)
this.NLlantas = newNLlantas;
this.TamañoRin = newTamañoRin;
public class Acuatico : Vehiculo
public string Nombredelanave;
public void SetNvelas(bool newNvelas)
public void Settimon(bool newtimon)
public void SetNombredelanave(string newNombredelanave)
this.Nombredelanave = newNombredelanave;
public void SetNewAcuatico(string newVela, string newTimon, string newNombreDeLaNave,string newColor, string newModelo, int newAño, string newMarca, string newPais)
this.Nombredelanave = newNombreDeLaNave;
public static Aereo[] Aereo = new Aereo[3];
public static Terrestre[] Terrestre = new Terrestre[2];
public static Acuatico[] Acuatico = new Acuatico[2];
public static void Main()
for (int i = 0 ; i < Terrestre.Length; i++)
Terrestre[i] = new Terrestre();
Terrestre[0].SetNewTerrestre(4,15, "ABC-123","ROJO", "SPARK", 2014, "CHEVROLET", "USA");
Terrestre[1].SetNewTerrestre(4,15, "DEF-456","NEGRO", "AVEO", 2017, "CHEVROLET", "USA");
Terrestre[2].SetNewTerrestre(4,15, "GHI-789","AZUL", "TIDDA", 2013, "NISSAN","JAPON");
Terrestre[3].SetNewTerrestre(2,15, "JKL-012","BLANCO", "JETTA", 2007, "BMW","ALEMANIA");
Terrestre[4].SetNewTerrestre(2,16, "MNO-987", "GRIS", "FORTUNER", 2007, "TOYOTA","JAPON");
for (int i = 0 ; i < Acuatico.Length; i++)
Acuatico[i] = new Acuatico();
Acuatico[0].SetNewAcuatico("Si","Asistido", "BOTE","AZUL", "NAVE", 2015, "SEARAY", "USA");