---
title: "Method overloading in c#.net"  
description: "Method overloading in c#.net"  
author: "Anonymous User"  
published: 2015-11-02  
updated: 2015-11-02  
canonical: https://www.mindstick.com/forum/33559/method-overloading-in-c-sharp-dot-net  
category: ".net"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Method overloading in c#.net

we wnat [method overloading](https://www.mindstick.com/forum/127/method-overloading) in c#

## Replies

### Reply by Anonymous User

[Method](https://www.mindstick.com/forum/166/webservice-method) Overloading is a feature that allows a class to have two or more methods having same name, if their argument lists are different.

```
using System;using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;

namespace Forum{        class Program    {        static void Main(string[] args)        {            // add tow numbers using plus method
            Console.WriteLine("Add tow Numbers:" + OverLoading.Plus(10, 10));

            // add three numbers using plus method
            Console.WriteLine("Add three Numbers:"+ OverLoading.Plus(10, 10,10));
            Console.ReadLine();
        }
    }
    class OverLoading    {        public static int Plus(int number1, int number2)  {            return Plus(number1, number2, 0);
        }        public static int Plus(int number1, int number2, int number3)  {            return number1 + number2 + number3;        }    }}
```

```

```

we create tow method for add number with different parameter . that is called method overloading.


---

Original Source: https://www.mindstick.com/forum/33559/method-overloading-in-c-sharp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
