Allow to require interface or class