Пример #1
0
      static void Main(string[] args)
      {  //Objetos clase Pelicula
          Pelicula Peli1 = new Pelicula("Titanic", 1994, "Estados Unidos", "James Cameron");
          Pelicula Peli2 = new Pelicula("Black Panther", 2018, "Estados Unidos", "Ryan Coogler");

          //  Se llama al metodo imprime
          Peli1.imprime();
          Peli2.imprime();
      }
Пример #2
0
        static void Main(string[] args)
        {
            /*Pelicula p1 = new Pelicula();
             * Pelicula p2 = new Pelicula();
             * p1.SetTitulo("Black Panter");
             * p1.SetAño(2018);
             *
             * p2.SetTitulo("Lord Of The Rings Return Of The King");
             *  p2.SetAño(2003);
             *  p2.SetDirector("Peter Jackson");
             *  p2.SetPais("New Zealand, United States");
             *
             * p1.print();
             * p2.print();
             */


            /*List<Pelicula> peliculas = new List<Pelicula>();
             *
             *          peliculas.Add(new Pelicula("La forma del agua", 2017));
             * peliculas.Add(new Pelicula("Birdman", 2018));
             * peliculas.Add(new Pelicula("El artista", 2012));
             * peliculas.Add(new Pelicula("Bohemian Rhapsody", 2018));
             * peliculas.Add(new Pelicula("Shakespeare in love", 1999));
             *
             * foreach(Pelicula s in peliculas)
             * {
             *  s.imprime();
             * }*/

            Pelicula p1 = new Pelicula("La La Land", 2016);

            p1.AgregarActor(new Actor("Ryan Gosling", 1980));
            p1.AgregarActor(new Actor("Emma Stone", 1988));

            p1.imprime();
        }