How to override a parent component in UE4 C++?

Thank you for your help, but I don’t see how it can solve my problem. I need to attach an object to a player using an inherited component.