Volume is exclusively a 3D property that defines the amount of space taken up by an object (or the capacity it can hold). 2D shapes are flat, and thus do not have a capacity. This is also calculated using the side lengths but in a different manner. Some examples are provided in the table below.
In this table, = volume, = length, = width, = height.