How to move two object at time [Solved]

From my point of view, it’s better to have two different objects of the same structure, containing a moving object, its path and update() function.