title: Cannot understand the error msg: 'nonstatic member reference must be relative to specific object'
body: <p>I Keep getting the 'nonstatic member reference must be relative to specific object' error
  and i don't actually get it 
  my code is simply Consists of 2 classes :
  1-Info
  2-Employee</p>
  
  <p>and Employee class inherit from Info</p>
  
  <p>the INFO class has 2 variable : ID - Name.
  and I'm trying to access the ID variable like this</p>
  
  <pre><code>cin &gt;&gt; Employee.Info.ID
  </code></pre>
  
  <p>any help?</p>