Answer:
D. the masses of the objects and the distance between them
Step-by-step explanation:
Gravitation is a force, a force doesn't care about the shape or density of objects, only about their masses... and distances.
And you can get it using the following equation:

Where :
G is the universal gravitational constant : G = 6.6726 x 10-11N-m2/kg2
m represent the mass of each of the two objects
d is the distance between the centers of the objects.