The overall value of the dipole moment of a polar molecule depends on its geometry and shape, i.e. vectorial addition of dipole moment of the constituent bonds. Water has angular structure with bond angle 105∘ as it has dipole moment. However BeF2 is a linear molecule since dipole moment summation of all the bonds present in the molecule cancel each other.