Missie 2

Code met uitleg

De oplossing wordt hier stap voor stap besprokenarrow-up-right

Code

Main

            List<Gebouw> enclave = new List<Gebouw>();
            enclave.Add(new Hospitaal("Sint Vincentius", 4, 5));
            enclave.Add(new Woonst("Tims shack", 1, 1));
            enclave.Add(new Generator("batteryshed 1", 1, 2));

            foreach (var gebouw in enclave)
            {
                gebouw.PrintGebouw();
            }

            Console.SetCursorPosition(1, 20);

Gebouw

Flat

Hospitaal

Generator

WaterkrachtCentrale

Last updated

Was this helpful?