UChildActorComponent Call a Function

Sorry but I don’t know how I create the weapon and then get its component.

Could you show me a code example please?