It is always in three dimensions. To find the volume of an objects like a cube or a box, measure the length × width × height. If measured in centimeters, the answer will be in cubic centimeters (cm³).
Density also depends on the material. A piece of iron with the same dimensions as a piece of aluminium will be heavier because the atoms are more closely packed and each iron atom has much more ...