Centre of mass of a body is defined as the point where the whole mass of a body is supposed to be concentrated.
For the given geometric shapes, such as sphere, cylinder, ring and cube, each of uniform mass density, the centre of mass of each body will lie in their respective geometric centers. It is because the given geometric shapes are geometrically symmetrical about their centers. Hence, the centre of mass of these bodies will lie in their respective geometric centers.
The centre of mass of a body may or may not lie within it, depending on their geometry. As in the case of a hollow sphere the centre of mass lies outside the body while for a solid sphere, centre of mass lies within its body.