Exemple #1
0
        static void Main(string[] args)
        {
            SuperHuman superHuman = new SuperHuman("Super Dude");

            superHuman.Powers.Add(new Power("Teleportation", 50));
            superHuman.DisplayPowers();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            SuperHuman superHuman = new SuperHuman("Superdude");

            superHuman.Powers.Add(new Power("Teleportation", 50)); //Setting up anonymous object
            superHuman.DisplayPowers();
        }