title: Overloading the << operator error C2804: binary 'operator <<' has too many parameters
body: <p>Here is my class:</p>
  
  <pre><code>#ifndef CLOCK_H
  #define CLOCK_H
  using namespace std;
  
  class Clock
  {
      //Member Variables
  
      private: int hours, minutes;
  
      void fixTime( );
  
      public:
          //Getter &amp; settor methods.
          void setHours(int hrs); 
          int getHours() const;
          void setMinutes(int mins); 
          int getMinutes() const; 
  
          //Constructors
          Clock(); 
          Clock(int);
          Clock(int, int);
          //Copy Constructor
          Clock(const Clock &amp;obj);
          //Overloaded operator functions
          void operator+(const Clock &amp;hours);
          void operator+(int mins);
          void operator-(const Clock &amp;hours);
          void operator-(int minutes1);
          ostream &amp;operator&lt;&lt;(ostream &amp;out, Clock &amp;clockObj); //This however is my problem where i get the error C2804. Saying that it has to many parameters 
  };
  #endif
  </code></pre>
  
  <p>All this function is supposed to do is out the values of a clock at different times.</p>