ChildOf constraint makes the owner to operate like it's the child of the target transform. Plus you could also opt-out position/rotation/scale property for this pseudo relation.
This is useful when you need to attach something to some transform but doesn't want to change the real hierarchy.
Check the preview image below:
Here we explain each options in the ChildOf editor;