title: Difference between class and instance variables in C#
body: <p>I am completing a basics programming course and I am having trouble understanding the difference between class variable and instance variables (static and non-static). I need to determine the difference between the two in the code</p>
  
  <pre><code>Class StudentDetails
  {
  Int rollNumber;
  String studentName;
  }
  StudentDetails firststudent= StudentDetails (19236, ”Thomas”);
  </code></pre>
  
  <p>I believe the rollNumber, studentName, 19236 and "Thomas" are all instance variables and the firststudent is a class variable.</p>
  
  <p>Any assistance on this would be appreciated as the course material is not very helpful.</p>