title: C++ Inheritance not taking an enum
body: <p>I'm trying to figure out basic inheritance. But I seem unable to get the enum to take. It just responds with a smiley face and nothing. </p>
  
  <p>I honestly don't know what I'm doing wrong so I'm afraid I'll have to just throw all my code at you.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  enum Discipline {
     COMPUTER_SCIENCE, Computer_SCIENCE_AND_INNOVATION
  };
  
  const string DISCIPLINE_STRINGS[2] = { "Computer Science",
     "Computer Science and Innovation",
  };
  
  class Person {
  public:
      Person(){cout &lt;&lt; "Person object created using the default Person constructor\n";};
      Person(const string&amp; name, Discipline type){pName = name; pType = type;};
      ~Person(){cout &lt;&lt; "Person object destroyed\n";};
      string pName;
      string pType;
  };
  
  class Faculty: public Person {
  public:
      Faculty();
      Faculty(const string&amp; name, Discipline type) {pName = name; pType = type; cout &lt;&lt; "Faculty object created using the alternative Faculty constructor\n";};
      ~Faculty(){cout &lt;&lt; "Faculty object destroyed!";};
      string getName(){return pName;};
      string getDepartment(){return pType;};
  };
  
  class Student: public Person {
  public:
      Student();
      Student(const string&amp; name, Discipline type) {pName = name; pType = type; cout &lt;&lt; "Student object created using the alternative Student constructor\n";};
      ~Student(){cout &lt;&lt; "Student object destroyed!";};
      string getMajor(){return pType;};
      string getName(){return pName;};
  };
  
  
  
  int main()
  {
     Faculty prof("Name1", COMPUTER_SCIENCE);
     Student stu(" Name2", Computer_SCIENCE_AND_INNOVATION);
  
     cout &lt;&lt; endl &lt;&lt; "I, " &lt;&lt; stu.getName() &lt;&lt; ", am majoring in " &lt;&lt; stu.getMajor() &lt;&lt; "." &lt;&lt; endl;
     cout &lt;&lt; "I am taking CSI 240 with Prof. " &lt;&lt; prof.getName() &lt;&lt; ", who teaches "
          &lt;&lt; prof.getDepartment() &lt;&lt; " courses." &lt;&lt; endl &lt;&lt; endl;
     system ("pause");
     return 0;
  }
  </code></pre>