The strength of a gravitational force between two objects depends on

Amass and distance.
Bdistance and volume.
Cmass and volume.
Dsize and shape.