<p>Say I have a class named Frog, it looks like:</p>

<pre><code>public class Frog
{
     public int Location { get; set; }
     public int JumpCount { get; set; }


     public void OnJump()
     {
         JumpCount++;
     }

}
</code></pre>

<p>I need help with 2 things:</p>

<ol>
<li>I want to create an event named Jump in the class definition.</li>
<li>I want to create an instance of the Frog class, and then create another method that will be called when the Frog jumps.</li>
</ol>

```
```
public event EventHandler Jump;
public void OnJump()
{
    EventHandler handler = Jump;
    if (null != handler) handler(this, EventArgs.Empty);
}
```
```
then
```
```
Frog frog = new Frog();
frog.Jump += new EventHandler(yourMethod);

private void yourMethod(object s, EventArgs e)
{
     Console.WriteLine("Frog has Jumped!");
}
```
```