Any subspace of a separable metric space is separable and hence admits a countable dense subset. $\mathbb R$ is separable, since $\mathbb Q$ is a countable dense subspace.
Thus, if $A\subseteq\mathbb R$, we can find a countable dense subset $D$ of $A$. We clearly don't have $\overline{A\cap\mathbb Q}=A$ (just take $A=\left\{\sqrt 2\right\}$, for example), but what if $A=[0,\infty)$ or $A$ is any other connected set (i.e. an interval)?
In general, if $(\Omega,\tau)$ is a topological space, $Q\subseteq\Omega$ is $\tau$-dense and $A\in\tau$, then $A\cap Q$ is $\left.\tau\right|_A$-dense. The simple proof can be found here.