Listening to multiple controls of same type?

This is a best-practices question and might not have anything to do with Juce.
The only way I ask it here, is in case there’s actually a best Juce-way of approaching this issue.

Suppose I have a class, A, with two sliders inside, sliderOne and sliderTwo.
Another class, B (which implements SliderListener), wishes to listen to the valueChanged of both sliderOne and sliderTwo, but doesn’t need to hold an actual reference/pointer to said sliders.

What will be the best way to distinguish between the two sliders, in B::sliderValueChanged(SliderListener* listener)?