title: Declaring vs Defining member variables C++
body: <p>I have seen many questions regarding definition and declaration of global and local variables and static members, but for non-static member variables, I am unable to distinguish it.</p>
  
  <p>In the code below</p>
  
  <pre><code>class Line 
  {
  int length; //?
  static int L;  //declared
  }; //defined
  </code></pre>
  
  <p>We have defined the class <code>Line</code>, we have declared its static member <code>L</code>. So what about the non-static member <code>length</code>? Is it defined or declared? </p>