Adding and handling event

Hello. I can’t find any information about events at all. All I found is Event_handling and to be honest I didn’t understand anything. So, I have an object in my level, I want to click on it and handle this action. How can I do it in C++? Or should I use blueprint?

I also would like to know how to do this in C++