Constructors GetInfo
<p>I am new to C# and am working on classes and understanding them. My problem is I am not understanding how to create a <code>Get</code> to retrieve the private variable <code>_yourname</code> and <code>Set</code> to set the private variable <code>_yourname</code>.</p>

<pre><code>namespace WindowsFormsApplication1
{
    class InputClass
    {
        private string _yourName;
        public string _banner;
        public virtual void GetInfo();
        public InputClass(String _banner)
        {
            _banner = "Enter your name";
        }
    }
}
</code></pre>

<p>Maybe I am using the wrong function to <code>GetInfo</code>. But I am also wondering when I have the <code>GetInfo</code> if in the <code>()</code> I should write <code>_yourname</code> in it.</p>
