OpenCV trackbar callback in C++ class

I have a question about how to define the callback for trackbars in OpenCV when working with classes in C++. When I define my trackbar let's say in the constructor method of my .cpp class how can I