How to calculate volume of a solid

Volume is the space occupied by a 3-dimensional object or enclosed within a a container.