public static void Main()
Vehiculo v1 = new Vehiculo("Mazda", "Negro", 180, "gas", "auto", false);
Moto m1 = new Moto ("Yamaha", "Azul y Blanco", 150, "Gas", "Manual", false, " 4tiempos");
Bus b1 = new Bus ("Mercedes Benz", "Amarillo", 45, 2, 150, "Gas", "Manual", true, 45, 10);
private string carburante;
private string transmision;
public Vehiculo (string m, string c, int vel_max, string cb = "gas", string t = "manual", bool e = false && true) {
get { return this.color; }
set { this.color = value; }
Console.WriteLine("* info del vehiculo **");
Console.WriteLine(" Marca " + this.marca);
Console.WriteLine(" Color " + this.color);
Console.WriteLine(" Vel maxima " + this.vel_max + "KM/H");
Console.WriteLine(" Carburante " + this.carburante);
Console.WriteLine(" Transmision " + this.transmision);
Console.WriteLine(" Electrico " + this.electrico);
public class Moto : Vehiculo {
public Moto (string m, string c, int vel_max, string cb = "gas", string t = "manual", bool e = false, string tm = "4tiempos") :
base (m,c, vel_max,cb,t,e)
Console.WriteLine(" Tiempos " + this.tiempos);
public class Bus : Vehiculo {
public Bus (string m, string c, int p, int ejes, int vel_max, string cb = "gas", string t = "manual", bool e = false, int tp = 45, int ee = 10) :
base (m,c, vel_max,cb,t,e)
Console.WriteLine(" Pasajeros " + this.pasajerosxd);
Console.WriteLine(" Ejes " + this.ejes);