inherit func