title: Gaining access to a variable in another class
body: <p>I <strong>HAD</strong> an issue a few minutes ago. </p>
  
  <p>for simplicity sake? I have a "Member" class and a "Race" class.</p>
  
  <p>I'm trying to access the "MemType" variable in the Member class (Which is a private attribute) because I want to compare it to the "RaceType"</p>
  
  <pre><code>    private string MemType;
      /// &lt;summary&gt;
      /// Username holds the Members Username (JM6491SHR, MM5642SHR)
      /// &lt;/summary&gt;
      private string Username;
      /// &lt;summary&gt;
      /// Number of races that the racer has run (1, 10, 134)
      /// &lt;/summary&gt;
      private int NoRacesRun;
      /// &lt;summary&gt;
      /// The % of Races that the racer has won (0.0%, 50.6%, 13.8%)
      /// &lt;/summary&gt;
      private float PerRacesWon;
      private string MemPic;
      private string MemClub;
      private bool Gender;
      private int MemExp;
  
      /// &lt;summary&gt;
      /// Need a get property for MemType to compare it to a Race type (used for validation) 
      /// &lt;/summary&gt;
      public string memType { get { return MemType; } }
  </code></pre>
  
  <p>(The reason for the variable is, If Race and Member aren't both "Senior" for example, then a member cannot join the race, since they do not meet the type requirement)</p>
  
  <p>I used a getter (no setter) to get the variable.</p>
  
  <p>is this correct or incorrect practice? provided some of my code for my Member, shows the property I used.</p>