Esempio n. 1
0
        static void Main(string[] args)
        {
            Peliculas p1 = new Peliculas();
            Peliculas p2 = new Peliculas();

            p1.SetTitulo("La La Land");
            p1.SetAño(2016);
            Console.WriteLine("{0}({1})", p1.GetTitulo(), p1.GetAño());
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Peliculas P1 = new Peliculas("Titanic", 1997);
            /*-----------------------------------------------------------*/
            Peliculas P2 = new Peliculas("Ben-Hur", 2003);

            /*-----------------------------------------------------------*/
            P1.Imprime();
            /*-----------------------------------------------------------*/
            P2.Imprime();
        }