I'm reading the first chapter of a book on general topology. It has a lot of small, simple exercises on almost all pages and I try to do them all to fully understand the subject.
This one I did not manage to solve, though it's probably really simple, cause the previous ones were:
Suppose $X$ and $Y$ are topological spaces. $f:X\to Y$ is any map.
Prove that f is continuous if and only if: $$ f(\overline{A}) \subseteq \overline{f(A)}\quad for\quad all\quad A\subseteq X $$
I think I'll probably have to only use the open subset criterion for continuity and the definition of A-bar and that'll probably be it, but please, help me a bit. Thanks!