Cavalieri's Principle
You can drag the red points. The areas of the three cross sections are equal, so the volumes of the three objects are also equal.
Information: Cavalieri's Principle