In Exercise 2.2 it is shown that provided we are outside a charged sphere, the force it enacts can be modelled by shrinking it to a point particle at the centre with the same change. Note that due to the pretty much identical forms of electrostatic attraction (ie. in the case where one particle is fixed), the same can be said for modelling gravitation between massive bodies.
Incidentally, if we are inside a charged shell, it can be shown that the surface forces all cancel out to give zero, so there is no net acceleration of a body inside. This result can be used to show that if a particle lies inside a charged (or massive) sphere at a distance r from the centre, the force it experiences is just the same as if we ignored all charged/gravitational mass beyond a radius r and just considered it sitting on the surface of the subball (which in turn can be modelled as a point charge at the centre, though with a reduced charged compared to the total body).