title: Function declaration inside or outside the class
body: <p>I am a JAVA developer who is trying to learn C++, but I don't really know what the best practice is for standard function declarations.</p>
  
  <p>In the class:</p>
  
  <pre><code>class Clazz
  {
   public:
      void Fun1()
      {
          //do something
      }
  }
  </code></pre>
  
  <p>Or outside:</p>
  
  <pre><code>class Clazz
  {
  public:
      void Fun1();
  }
  
  Clazz::Fun1(){
      // Do something
  }
  </code></pre>
  
  <p>I have a feeling that the second one can be less readable...</p>