Justify virtual function and hasInput definition