What is the benefit of using getters and setters on properties in C#?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://programmers.stackexchange.com/questions/21802/when-are-getters-and-setters-justified">When are Getters and Setters Justified</a>  </p>
</blockquote>



<p>Why do we use get and set method in C#? And why do we use public and private method property?</p>

<p>For example:</p>

<pre><code>public class Date
{
    private int month = 7;  
    public int Month
    {
        get
        {
            return month;
        }
        set
        {
            if ((value &gt; 0) &amp;&amp; (value &lt; 13))
            {
                month = value;
            }
        }
    }
}
</code></pre>
