During class switching, the constant region of the immunoglobulin heavy chain changes but the variable regions, and therefore antigenic specificity, stay the same.
In some cases it can be the actual antigen-binding site, and in some cases it may comprise variable region sequences outside of the antigen-binding site on the antibody itself.