Square prism, cube, cuboid are all the geometrical shapes. First let us know their definitions.
A cube is a geometrical shape where the lengths in all three dimensions are the same.
A Square prism is a three-dimensional shaped cuboid whose bases are square.
Is a square prism a cube?
Yes, a square prism can also be a cube. A square prism has a square as its base. However, its height is not necessarily the same as the side of the square. We know that a cube is a special type of cuboid where all the heights are of same length. Thus, a square prism can also be a cuboid.
So we can say that all cubes are square prism but not all square prism are cubes.