Consider the set $X = \left\lbrace a, b, c \right\rbrace$ with the topology $\mathscr{T} = \left\lbrace \emptyset, \left\lbrace a \right\rbrace, \left\lbrace b \right\rbrace, \left\lbrace a, b \right\rbrace, X \right\rbrace$. Now, let $A = \left\lbrace a, b \right\rbrace$. Clearly, $A$ is Hausdorff since $a \in \left\lbrace a \right\rbrace \in \mathscr{T}$ and $b \in \left\lbrace b \right\rbrace \in \mathscr{T}$ and $\left\lbrace a \right\rbrace \cap \left\lbrace b \right\rbrace = \emptyset$.
Now, the only open set containing $c$ is $X$ itself and hence has a non - empty intersection with $A$. Therefore, $\bar{A} = X$.
Therefore, in our example, $A$ is Hausdorff but $\bar{A} = X$ is not!