title: C++ how to destroy an object in the base class with a derived class constructor
body: <p>So in my program I have a derived class called hangman and a derived class called HangmanGraphics. The issue I'm having is after the game I want to reset my variables but for some reason my base constructor does not get restarted or even called. When I run the program it will go to the base constructor once but towards the end of the program when:</p>
  
  <pre><code>#include "player.h"
  #include "hangman.h"
  #include "HangmanGraphics.h"
  
  using namespace std;
  
  int main()
  {
  
      HangmanGraphics game2;
      while(1)
      {
          game2.Play();
  
          if(game2.Play()=='Y')
          {
              game2=HangmanGraphics();
  
              //in this part of the code I want to reset my base
              //constructor values but how do I do that by using the 
              //derived construtor  
  
              continue;
          }
      }
  }
  </code></pre>