What is the term for doing things or behaviors that contrast to what you really feel? For instance a person who is racist wanting to hire black people because they want to project an image that they aren't racist. Or if they doesn't like obese people but still interacts with them to make it look like they actually like them.

Is there a term for that?
Is there a term for that?


The closest term I can think of relevant to psychology is the Freudian concept of reaction formation the classic example being the gay homophobe