private static void Main(string[] args) { Console.WriteLine("¿Cuánta plata tenés disponible?"); var dato = Console.ReadLine(); IVehiculo test = Creador.MetodoFabrica(Convert.ToInt32(dato)); Console.WriteLine(""); test.Encender(); test.Acelerar(); test.Girar(); test.Frenar(); }
static void Main(string[] args) { BebidaEmbriagante oBebida = Creador.CreadorBebidas(Creador.CERVEZA); Console.WriteLine("Cerveza:"); Console.WriteLine(oBebida.CuantoMeEmbriagaPorHora()); Console.ReadKey(); BebidaEmbriagante bebida = Creador.CreadorBebidas(Creador.VINO_TINTO); Console.WriteLine("Vino Tinto:"); Console.WriteLine(bebida.CuantoMeEmbriagaPorHora()); Console.ReadKey(); }