::inherited hook for classes