title: Weird Error with Encapsulated Nested Class
body: <p>I have A Class Called "BaseMember"</p>
  
  <p>I've made it abstact.</p>
  
  <p>The reason for this is, I have two classes that extend BaseMember that are nested inside of BaseMember</p>
  
  <p>The one I'm focusing on right now is JuniorMember.</p>
  
  <p>My Environment doesn't recognise JuniorMember as being a class, even though I've already made the class.</p>
  
  <p>but for some reason it recognises "BaseMember.JuniorMember"</p>
  
  <pre><code>BaseMember.JuniorMember jmem2 = new BaseMember.JuniorMember("Andrew", "Adderson", "Bjorn", "Sir", "Hillclose", "Sweden", "zr13ny", "Adderson@hotmail.com",
              564312, 01698763122, 3, "Junior", "AA1299J", 0, 0, "none", "Swift Swe's", "Male", 2, 99, 1, 2, "dkane", "santa", "999292", "", "yes");
  </code></pre>
  
  <p>I know this code isn't correct. I have another Nested Class structure like this which involves BaseRace which has Sprint and Run classes encapsulated inside it, and that works as intended:</p>
  
  <p><a href="http://i.imgur.com/zyh1cGs.png" rel="nofollow">http://i.imgur.com/zyh1cGs.png</a></p>
  
  <p>I have a few questions:</p>
  
  <p>1) How do I fix my JuniorMember class so that I can use "JuniorMember" without having to write BaseMember.</p>
  
  <p>2)this is kinda a <em>bonus</em> question -- I have like, 25 parameters, do I really need to do stuff like this every time I make a new extending class constructor? it's unsightly.</p>
  
  <pre><code>  public Sprint(string rname, int rid, string rloc, string rtime, string rdist, string rclimb, string rdesc, string rimg, string rter,
                  string rcon, string rdir, string rwin, int rrecord, string rrace, string rdate,string rdatec,string rcat,string rgen, string rdif, string rlim, string rcre)
                  : base(rname,rid,rloc,rtime,rdist,rclimb,rdesc,rimg,rter,rcon,rdir,rwin,rrecord,rrace,rdate,rdatec,rcat,rgen,rdif,rlim,rcre)
              {
              nameRace = rname;
  
  
      RaceID = rid;
  
      }
  </code></pre>
  
  <p>Thanks guys.</p>
  
  <p>By the way, this is for a project to do with Members (Junior and Senior) only being able to join Junior and Senior Races. The Classes kinda have to be nested for this, I don't really see the benefit of them either, but I have to use them.</p>