## Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

İn this code, Could u expalin this code step by step ı am really confused .How it pasted 6 chomp! ? you can understand what ı mean when you watch video

```dispenser.load(4);

}
{
mPezCount += pezAmount;
}
```

HI hakan,

the code above shows the principle of method overloading. So you can have multiple methods with the same name ("load" in our example) but every method has different arguments. Or sometimes you will see the word parameters.

In your example you have a load() method with empty parenthesis (). So this method takes no arguments. The second load method has int pezAmount inside (). So it takes a number (int) of Pez that need to be filled in the PezDispenser.

This load method looks like this:

```// so if you call this load method you need to add a number of Pez
// into the parenthesis that you want to fill into PezDispenser
{
mPezCount += pezAmount;
}
```

The first two lines of code show how you use the load(int pezAmount):

```dispenser.load(4);
```

Here you are using load(int pezAmount) directly an you give the method 4 Pez and then 2 Pez to load. So 4 and 2 are numbers and they are arguments that your load(int pezAmount) needs to work to load the PezDispenser called "dispenser"

The load method that takes no arguments has your second load(int pezAmount) inside. This might seem a little confusing:

```public void load() {
// so if you call dispenser.load(); with empty perenthesis
// the PezDispenser will be loaded to MAX-PAZ
// and uses the second load method that takes the number of Pez (here MAX-PEZ)