title: Redefinition of a class in a header file
body: <p>I'm attempting to compile my code with <code>g++</code>, but its throwing this compiler error:</p>
  
  <pre><code>Enrollment.h:3:7: error: redefinition of class sict::Enrollment
  Enrollment.h:3:7: error: previous definition of class sict::Enrollment
  </code></pre>
  
  <p>my <code>Enrollment.h</code>:</p>
  
  <pre><code>namespace sict{
  class Enrollment{
    private:
      char _name[31];
      char _code[11];
      int _year;
      int _semester;
      int _slot;
      bool _enrolled;
    public:
      Enrollment(const char* name , const char* code, int year, int semester ,  int time );
      Enrollment();
      void set(const char* , const char* , int ,int,  int , bool = false );
  
      void display(bool nameOnly = false)const;
      bool valid()const;
      void setEmpty();
      bool isEnrolled() const;
      bool hasConflict(const Enrollment &amp;other) const; 
    };
  
  }
  </code></pre>
  
  <p>Any way to fix this?</p>