How do you implement clickable interface through code?

Hello gals and guys, I have been looking at some tutorials but cannot figure out how to implement the clickable interface to an object in code. Does anyone have an idea on how to do this?

Thanks