Beispiel #1
0
        static void Main(string[] args)
        {
            var village = new Village();

            village.Add(new BoysHouse());
            village.Add(new GirlsHouse());
            village.Accept(new Santa());
        }
        static void VillageExample()
        {
            Village village = new Village();

            village.Add(new BoysHouse());
            village.Add(new GirlsHouse());

            village.Accept(new Santa());
        }