title: What is the point of defining methods outside of a class in C++?
body: <p>As a Java guy trying to learn C++ I'm a little confused as to why you would want to do something like this</p>
  <pre><code>class question{
  private:
    string ques;
  
  public:
    question(string ques)
  }
  
  question::question(string ques){
  this-&gt;ques = ques; 
  };
  </code></pre>
  <p>versus just</p>
  <pre><code>class question{
  private:
    string ques;
  
  public:
    question(string ques){
     this-&gt;ques = ques;
    }
  };
  </code></pre>
  <p>Does it have something to with &quot;inline&quot;?  I don't quite know what that means either.</p>