What is density?

(A) The volume of an object.

(B) The mass of an object.

(C) The weight of an object.

(D) The measure of mass of a material within a given space.