Home > DeveloperSection > Articles > Method Overloading

Method Overloading

C# C# 
0 Comment(s)
 1949  View(s)
Rate this:

Method Overloading in C#.Net

In method overloading method performs the different task at the different input parameters with same method name and in same class.  


To explain the concept of overloading I have created two classes Poly

    public class poly


//these two functions, sum(), are overloaded.

        public int sum(int x, int y)


            return (x + y);


        public virtual int sum(int x, int y, int z)


            return (x + y + z);





Don't want to miss updates? Please click the below button!

Follow MindStick