What affect the amount of gravity between two objects?

A.Density and mass
B.Distance and weight
C.Mass and weight
D.Mass and distance between the objects.