How to detect collision for gameobject with c++?

i want to make collectables for my game. so what should i do to do that by c++?

Watch this serie by Unreal Officials, you will do whatever you want and learn lots of side and important things with it.