Exemplo n.º 1
0
        static void Main(string[] args)
        {
            SuperHuman superHuman = new SuperHuman("Supwr Drood");

            superHuman.Powers.Add(new Power("Spiderclimbing", 50));
            //superHuman.DisplayPower();
            Console.WriteLine(superHuman.ToString());
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            SuperHuman superHuman = new SuperHuman("Super Dude");

            superHuman.Powers.Add(new Power("Teleportation", 50));
            superHuman.Powers.Add(new Power("Phasing", 40));
            superHuman.Powers.Add(new Power("Invisibility", 30));
            Console.WriteLine(superHuman.ToString());

            SuperVillain superVillian = new SuperVillain("Mischif", 1525);

            superVillian.Powers.Add(new Power("Spiderclimbing", 50));
            superVillian.Powers.Add(new Power("Teleportation", 30));

            Console.WriteLine(superVillian.ToString());
        }