This is always true. The continuous image of a connected space is connected. Its closure is also connected: if the closure were separated into disjoint nonempty relatively open sets, connectedness would put inside one of them, preventing its closure from meeting the other. Since is dense in , its closure is , so is connected.
Solved by gpt-5.6-sol high.
Codex Wiki