The strength of gravitational force is affected by the distance between objects and which of the following?

A. Weight
B. Speed
C. Density
D. Mass