I attempted to generalize the notion of subsets for an arbitrary category.
Given an object $X$, an object $Y$ shall be called $X$'s subobject iff there exists a monomorphism $f : Y → X$.
Dually, $Y$ shall be called $X$'s quotient object iff there exists an epimorphism $g : X → Y$.
These notions don't coincide in general. For example, even in the category $\mathbf{Set}$, $\emptyset$ is a subobject of every sets, but it fails to be a quotient object of every sets.
But I searched on Wikipedia, and apparently there is already the notion of subobjects? To quote:
In detail, let $A$ be an object of some category. Given two monomorphisms:
$u:S→A$ and $v:T→A$
with codomain $A$, we write $u≤v$ if $u$ factors through $v$—that is, if there exists $\phi:S→T$ such that $u=v \circ \phi$. The binary relation $≡$ defined by:
$u≡v \iff u≤v \land v≤u$ is an equivalence relation on the monomorphisms with codomain $A$, and the corresponding equivalence classes of these monomorphism are the subobjects of $A$.
I don't understand the motivation to have this complicated definition. Taken literally, a subobject is a morphism rather than an object.
Is this because my definition is inferior to the standard definition?
You want "An object $B$ and a monomorphism $B\to A$" to be a subobject, but the $B$ is actually entirely superfluous in this definition. Any monomorphism with codomain $A$ must by definition of morphism have a domain as well. So defining a monomorphism as a subobject, rather than an object together with a monomorphism inclusion is more refined, even though it is a smidge more abstract to those who aren't used to it.
As for the equivalence class part, consider as an example the category Set, and in it a set $x$ with one element. How many subobjects does it have? Simple set theory and / or elementary combinatorics say it ought to be $2$. What does your definition say? What is the number of monomorphisms with $x$ as codomain? A lot. However, apart from the single monomorphism $\varnothing\to x$, they all factor through one another and become one big equivalence class. Which takes us back to two subobjects. Which is what we wanted.