title: Why we need to put const at end of function header but static at first?
body: <p>I have code like this...</p>
  
  <pre><code>class Time
  {
      public: 
          Time(int, int, int);
          void set_hours(int);
          void set_minutes(int);
          void set_seconds(int);
  
          int get_hours() const;
          int get_minutes() const;
          int get_seconds() const;
  
          static void fun() ;
  
          void printu() const;
          void prints();
  
      private:
          int x;
          int hours;
          int minutes;
          int seconds;
          const int i;
  };
  </code></pre>
  
  <p>Why do I need to put <code>const</code> at last to make a function constant type but if i need to make a function, I can do this like...</p>
  
  <pre><code>static void Time::fun() 
  {
      cout&lt;&lt;"hello";
  }
  </code></pre>
  
  <p>Above function <code>fun()</code> is also in same class. I just want to know what is the reason behind this?</p>