Most of the set operations are easy to transcribe into the category-theoretic language. Formally, let $A$ be a set, then:
A subset $B \subset A$ is a category-theoretic subobject, whose accompanied monomorphism (or "inclusion map") $i_B: B \to A$, is an isomorphism when its codomain is restricted into its image. (This restriction is needed under the category $\mathbf{Top}$.)
Given two subsets $B, C \subset A$, their intersection $B \cap C$ is the subset of $A$ such that, for every subset $D \subset A$ whose $i_D$ factors through $i_B$ and through $i_C$, $i_D$ factors through $i_{B \cap C}$. (It follows that $B \cap C \subset B$ and $B \cap C \subset C$.)
Given two subsets $B, C \subset A$, their union $B \cup C$ is the subset of $A$ such that, for every subset $D \subset A$ where both $i_B$ and $i_C$ factor through $i_D$, $i_{B \cup C}$ factors through $i_D$. (It follows that $B \subset B \cup C$ and $C \subset B \cup C$.)
But what about the notion of set difference? Formally, given a set $A$ and its subset $B$, I attempted to come up with how to define the complement $A \setminus B$.
I see two ways. One "bottom-up", the other "top-down":
$A \setminus B$ is a subset of $A$ such that, for every subset $C \subset A$ such that $B \cap C = \emptyset$ (where $\emptyset$ is the initial object), $i_C$ factors through $i_{A \setminus B}$.
$A \setminus B$ is a subset of $A$ such that, for every subset $C \subset A$ such that $B \cup C = A$ (that is, $i_{B \cup C}$ is an isomorphism), $i_{A \setminus B}$ factors through $i_C$.
I won't judge which is more plausible as a definition, so here's my question: How do these two definitions differ, when generalized into other categories such as $\mathbf{Top}$ or $\mathbf{Grp}$?