If the object is made of liquid, then you measure its mass and volume, because mass divided by volume is density.
If the object is solid with a regular shape, then measure its length, width and height, because length times width times height is the volume of a solid regular object.
If the object is made of liquid, then you measure its mass and volume, because mass divided by volume is density. If the object is solid with a regular shape, then measure its length, width and height, because length times width times height is the volume of a solid regular object. I hope I was able to answer your question. Have a good day.