title: Defining an Array of type Class
body: <p>I'm trying to define an array of type Class, for my homework.  The classB and classC is defined inside another classA, and I have to define the an Array which
  is defined inside classC of type classB. Below is the code I'm writing.  </p>
  
  <pre><code>//main.cpp
  ...
  //cop.h
  class cop
  {
      public:
          ....
          class Person
          {
              private:
                  static char name;
                  static char age;
                  static char gender;
          };
          class Station
          {
              public:
                  Station();
                  ~Station();
              private:
                  Person personArray[20];
              protected:
                  void visit();
  
          };
  
  //cop.cpp
  char cop::Person::name;
  char cop::Person::age;
  char cop::Person::gender;
  
  cop::Station::Station(){}
  cop::Station::~Station(){}
  Person cop::Station::personArray[20];
  </code></pre>
  
  <p>I get following ERROR;</p>
  
  <blockquote>
    <p>'Person' does not name a type</p>
  </blockquote>