Esempio n. 1
0
 public static void Main(String[] args)
 {
     Method_overloading mthover = new Method_overloading();
     Console.WriteLine("Addition of two integers::::::::::::::::" + mthover.Addition(2, 5));
     Console.WriteLine("Addition of two double type values::::::" + mthover.Addition(0.40f, 0.50f));
     Console.WriteLine("Addition of three integers::::::::::::::" + mthover.Addition(2, 5, 5));
     Console.WriteLine("Addition of three double type values::::" + mthover.Addition(0.40f, 0.50f, 0.60f));
     Console.ReadLine();
 }
Esempio n. 2
0
        public static void Main(String[] args)
        {
            Method_overloading mthover = new Method_overloading();

            Console.WriteLine("Addition of two integers::::::::::::::::" + mthover.Addition(2, 5));
            Console.WriteLine("Addition of two double type values::::::" + mthover.Addition(0.40f, 0.50f));
            Console.WriteLine("Addition of three integers::::::::::::::" + mthover.Addition(2, 5, 5));
            Console.WriteLine("Addition of three double type values::::" + mthover.Addition(0.40f, 0.50f, 0.60f));
            Console.ReadLine();
        }