static void Main(string[] args) { Peliculas P1 = new Peliculas("Joker", 2019, "Todd Phillips", "Estados Unidos"); // P1.setTitulo("Joker"); // P1.setAño(2019); // Console.WriteLine("{0}({1})", P1.getTitulo(), P1.getAño()); Peliculas P2 = new Peliculas("The Irishman", 2019, "Martin Scorsese", "Estados Unidos"); // P2.setTitulo("El Irlandés"); // P2.setAño(2019); // Console.WriteLine("{0}({1})", P2.getTitulo(), P2.getAño()); P1.Imprimir(); P2.Imprimir(); }
static void Main(string[] args) { Peliculas P1 = new Peliculas("Joker", 2019, "Todd Phillips", "Estados Unidos"); P1.Imprimir(); List <Actores> Actors = new List <Actores>(); Actors.Add(new Actores("Joaquin Phoenix", 1974)); Actors.Add(new Actores("Robert de Niro", 1943)); Actors.Add(new Actores("Zazie Beetz", 1991)); Actors.Add(new Actores("Frances Conroy", 1953)); Actors.Add(new Actores("Brett Cullen", 1956)); foreach (Actores a in Actors) { a.ImprimirAct(); } }