title: Static vs Instance Variables: Difference?
body: <p>What is the difference between a static and instance variable. The following sentence is what I cant get: </p>
  
  <blockquote>
    <p>In certain cases, only one copy of a particular variable should be shared by all objects of a class- here a static variable is used.<br>
    A static variable represents class wide info.All objects of a class share the same data. </p>
  </blockquote>
  
  <p>I thought that instance vars were used class wide whereas static variables only had scope within their own methods? </p>