//Compile Time Polymorphism Example. Method Overloading.
        static void Main(string[] args)
        {
            var c = new Calculate();

            c.AddNumbers(1, 2);
            c.AddNumbers(1, 2, 3);
        }
Esempio n. 2
0
        public static void Execute()
        {
            var c = new Calculate();

            c.AddNumbers(1, 2);
            c.AddNumbers(3, 4, 5);
        }