title: Constructor Initialization and private variables set inside constructor
body: <p>My constructor is suppose to only take one variable. But I'm curious if you ca initialize other variables that arent in the constructor defintion. </p>
  
  <pre><code>class WordAnalysis{
  private:
      int timesDoubled;
      word *words;
      int wordCount;
      int index;
      void doubleArrayAndAdd(string);
      bool checkIfCommonWord(string);
      void sortData();
  public:
      bool readDataFile(char*); //returns an error if file not opened
      int getWordCount();
      int getUniqueWordCount();
      int getArrayDoubling();
      void printCommonWords(int);
      void printResult(int);
      WordAnalysis(int);
      ~WordAnalysis();
  </code></pre>
  
  <p>};</p>
  
  <p>Example: Would any instance of WordAnalysis now have timesdoubled as 0. and would a getter function be able to get this information without a setter?</p>
  
  <pre><code>WordAnalysis::WordAnalysis(int arrSize){
  
  wordCount = arrSize;
  int timesDoubled = 0;   
  int index = 0;
  }
  </code></pre>