---
title: "Method Overloading."  
description: "Method Overloading."  
author: "Pushpendra Singh"  
published: 2010-12-18  
updated: 2010-12-18  
canonical: https://www.mindstick.com/forum/127/method-overloading  
category: "oops"  
tags: ["oops"]  
reading_time: 1 minute  

---

# Method Overloading.

What is [Method OverLoading](https://www.mindstick.com/forum/158924/how-does-c-sharp-support-method-overloading-and-what-are-its-benefits)?

## Replies

### Reply by John William

It is possible to define two or more methods within the same class that having the same name, as long as their parameter declarations are different. When this is the case, the methods are said to be overloaded, and the process is referred to as [method](https://www.mindstick.com/forum/166/webservice-method) overloading.\
\
**Same method name but having different types of signatures in the same scope.** \
\

```
public class AddNumber{public int Add(int x, int y){return x+y;}public int Add(int x, int y, int z){return x+y+z;}}
```

\
We define a Add method, in two different versions. The first one takes two paramaters, for adding two numbers, while the second version takes three parameters.\


---

Original Source: https://www.mindstick.com/forum/127/method-overloading

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
