title: Determine type of child class with baseclass pointer
body: <p>Is there a way to determine the type of a child class with a baseclass pointer?</p>
  
  <p>I have declared a pointer in a class constructor like this
  in .h file</p>
  
  <pre><code>baseclass *screen;
  </code></pre>
  
  <p>in constructor</p>
  
  <pre><code>screen = new childclass();
  </code></pre>
  
  <p>Lets say baseclass has 5 different child classes and in my program I switch my pointer around to point towards various child objects, how can I determine the type of the object that screen is currently pointing towards?</p>