How to initialize an Object?
<p>I have a class like this,</p>

<pre><code>public class person
{
 name Name {set; get;}
 string Address {set; get;}
}

public class name
{
  string First {set; get;}
  string Last {set; get;}
}
</code></pre>

<p>Now when I create the object an try to set the first or last name I get an error. "Object reference not set to an instance of an object."</p>

<pre><code>person Person = new person();
Person.Name.First = "John";
Person.Name.Last ="Smith";
</code></pre>

<p>What am I doing wrong?</p>
