Which two physical quantities should be known to calculate the density of an object?

A. Mass and volume
B. Volume and weight
C. Weight and length
D. Mass and weight