Example #1
0
        static void Main(string[] args)
        {
            personagem Tony = new personagem();

            Console.WriteLine(Tony.nome);
            Console.WriteLine(Tony.idade);
            Console.WriteLine(Tony.atacarFraco(34.5f, 20f));
        }
Example #2
0
        static void Main(string[] args)
        {
            personagem tony = new personagem();

            tony.nome     = "Tony Stark";
            tony.armadura = "MK LXXXV";
            tony.idade    = 37;

            Console.WriteLine(tony.atacar());
            Console.WriteLine(tony.defender());
        }
Example #3
0
        static void Main(string[] args)
        {
            personagem Batman = new personagem();

            Batman.armadura = "Hellbat";

            Console.WriteLine(Batman.nome);

            Console.WriteLine(Batman.armadura);

            Console.WriteLine(Batman.Atacar());
        }