How to solve the following method issue in c#
<p>I have this in my main:</p>

<pre><code>static void Main(string[] args)
    {
        Money m1 = new Money(2315.99);

        Money m2 = new Money(4000, 25);

        Console.WriteLine(m1);
        Console.WriteLine(m2);

        Console.WriteLine(m1.IncrementMoney(m2));
    }



    public void IncrementMoney(Money x)
    {
        //what do I put in here?
    }
</code></pre>

<p>So
 <br/><code>Money m1 = new Money(2315.99);</code><br/> is supposed to turn 2315.99 into "$2315.99"</p>

<p>and </p>

<p><code>Money m2 = new Money(4000, 25);</code><br/> forms "$4000.25"</p>

<p>I have all that done in Money class and it works fine.            </p>

<p>Now what I'm supposed to do is add those two together using 
     <br/>       <code>m1.IncrementMoney(m2);</code></p>

<p>This is my "Money" class</p>

<pre><code>class Money
{

    //instance variables
    private int dollars;
    private int cents;


    double amount;


    public int Dollars
    {
        get { return dollars; }
        set
        {
            if (value &gt; 0)
                dollars = value;
        }
    }



    public int Cents
    {
        get { return cents; }
        set
        {
            if (value &gt; 0)
                cents = value;
        }
    }



    public Money(int Dol, int Cen)
    {
        Dollars = Dol;
        Cents = Cen;

        double Dollar = Convert.ToDouble(Dollars);
        double Cent = Convert.ToDouble(Cents);

        amount = Dollar + (Cent / 100);

    }


    public Money(double am)
    {
        int dol = Convert.ToInt32(am);

        if (dol &gt; am)
            Dollars = dol - 1;

        else if (dol &lt; am)
            Dollars = dol;
        //Dollars

        double cen = am % 1;

        cen = cen * 100;

        Cents = Convert.ToInt32(cen);
        //Cents

        double Dollar = Convert.ToDouble(Dollars);
        double Cent = Convert.ToDouble(Cents);

        amount = Dollar + (Cent / 100);
    }

    //override ToString()
    public override string ToString()
    {
        return string.Format("{0:c}", amount);
    }


}//end class Money
</code></pre>

<p>But I have no idea what to put into the <code>IncrementMoney</code> method. <br/>Please help?
<br/>and if not too much trouble, maybe a little insight to how it works? I'd really like to know.</p>

<p>Sorry if I didn't give enough info,
<br/>If anything else is required please let me know.
<br/>and thanks!</p>
