How to use OnActorBeginOverlap c++ code?

hhmmmm, I dont get it. We are giving the capsule the function that it needs to activate upon overlap event. What more information from the character does it need?