Stephen is correct. You want the method to be const. So the const follows the name of te method.