How can I get BP class for c++?

I find it more convenient to expose variables like these to editor and assign them there. You still have access to it in code, but setting it up is way more flexible and user friendly. Also, it doesn’t require to recompile the project each time you want to change such variable.