title: How to reach a child object getter function from a father object vector
body: <p>I have an assignment to make, where I have a vector of 'Robots' - an object I have. I have another Object, named QuickLimitedRobot, which inherits from Robot but have one more field to it - limit, which is an integer.</p>
  
  <p>I have a vector that contains all of the robots, whether they are limited or other inherited types of the Robot Object, and I need to get to the getLimit() function on my code, in a vector node that I already know that is a QuickLimitedRobot.</p>
  
  <pre><code>void RobotDB::moveLimitedRobot(const int rNum, const std::string &amp;rDirection){
  int cellValue;
  int locX=robots[rNum]-&gt;getCoordinate().getX();
  int locY=robots[rNum]-&gt;getCoordinate().getY();
  //@todo: :(
  QuickLimitedRobot tempQuick=*robots[rNum];
  int rLim=tempQuick.getLimit();
  </code></pre>
  
  <p>My compiler won't compile this because I tried to convert Robot to 'non-scalar type' QuickLimitedRobot.</p>
  
  <p>Someone can please lead me to a solution?</p>
  
  <p>thx in advance!</p>