Make declaration of methods compatible with parent class