How to use OnActorBeginOverlap c++ code?

edit this line into your answer so I could mark it as a full answer.