Esempio n. 1
0
        static void Main(string[] args)
        {
            Player player1 = new Luigi();
            Player player2 = new Mario();

            player1.Saudar();
            player1.Correr();
            player2.Saudar();
            player2.Correr();
        }
        static void Main(string[] args)
        {
            System.Console.WriteLine("Mario: ");
            Mario mario = new Mario();

            mario.Correr();
            mario.Pular();
            System.Console.WriteLine("Mario: ");
            Luigi luigi = new Luigi();

            luigi.Correr();
            luigi.Pular();
        }