예제 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Opdracht 6 - Deel 3 \n Factory: \n");
            VormFactory pen = new ConcreteVormFactory();

            IVorm cirkel = pen.GetVorm("Cirkel");

            cirkel.Teken();

            IVorm rechthoek = pen.GetVorm("Rechthoek");

            rechthoek.Teken();

            IVorm parallellogram = pen.GetVorm("Parallellogram");

            parallellogram.Teken();

            Console.WriteLine("\n Figuur: \n");
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Opdracht 6 - Deel 3 \nFactory: \n");
            VormFactory potlood = new ConcreteVormFactory();

            IVorm cirkel = potlood.GetVorm("Cirkel");

            cirkel.Teken();

            IVorm rechthoek = potlood.GetVorm("Rechthoek");

            rechthoek.Teken();

            IVorm parallellogram = potlood.GetVorm("Parallellogram");

            parallellogram.Teken();

            Console.WriteLine("\n(Bob the) Builder: \n");

            // Ik begrijp de Builder niet zo goed, daarom implementatie voorlopig niet gedaan.
        }