Exemple #1
0
        public static void Main(string[] args)
        {
            var worker = new FactoryWorker();
            var result = worker.AddNumbers(2, 3);

            Console.WriteLine(result.ToString());
        }
        static void Main(string[] args)
        {
            var worker = new FactoryWorker();

            worker.Count(4);
            worker.Count(5);
            worker.Count(4.5f);
        }
Exemple #3
0
        public static void Main(string[] args)
        {
            var man   = new Man();
            var kart  = new Kart();
            var alien = new Alien();

            var worker = new FactoryWorker();

            worker.Count(4);
            worker.Count(5);
            worker.Count(4.5f);
            Console.WriteLine("Press any key to continue");
            Console.ReadKey();
        }