How to get animation Notifies in C++?

I just normally create functions in the C++ class, like “OnNotifyX” and then, in the animation blueprint i do the event normally, and call that function.