Lets say that I have a uv sphere with an square extrusion coming out at a certain length. How does one smooth the sphere a...

Lets say that I have a uv sphere with an square extrusion coming out at a certain length. How does one smooth the sphere and not the extrusion?