# Connected subspaces question

Suppose that C, D are connected subsets of a topological space T such that $\bar{C} \cap \bar{D} \neq \emptyset$. Is it true that $C \cup D$ is necessarily connected?

I think I have a counter example for this:

Take the intervals $C = (0,1)$ and $D = (1,2)$ their closure is $[0,1]$ and $[1,2]$ which gives $\bar{C} \cap \bar{D} = \{1\} \neq \emptyset$ but clearly $(0,1) \cup (1,2)$ is disconnected. Am I right?

-
Yes, you're right. –  Rudy the Reindeer Mar 4 '12 at 15:10
Exactly, great example. –  rfauffar Mar 4 '12 at 15:14
So that this doesn’t languish forever on the Unanswered list, in a few hours, when the system allows you to do so, you should submit that example as your own answer to the question and accept it. –  Brian M. Scott Mar 4 '12 at 15:16
@user26069: You might consider taking the second part of your question (beginning with "I think...") and making it an answer on your own question. This is allowed, and in fact explicitly encouraged, on the StackExchange network. –  Zev Chonoles Mar 4 '12 at 15:17

Take the intervals $C = (0,1)$ and $D = (1,2)$ their closure is $[0,1]$ and $[1,2]$ which gives $\bar{C} \cap \bar{D} = \{1\} \neq \emptyset$ but clearly $(0,1) \cup (1,2)$ is disconnected.