How to make 2 objects rotate together?

Depending on the code, I suppose, used for handling it. Personally, I would attach the component to the center spinning object and not worry about it.