I have lots of confusion about definition of $Hom(A,B)$. I would like to ask several questions with my thoughts. Hopefully I could solve my problem.
-Firstly, my book write that if $A$ and $B$ is R-left module then $Hom(A,B)$ is a set of module homomorphisms from $A$ to $B$. So, does it mean that $Hom(A,B)$ is a set of morphisms from $A$ to $B$. Definition of morphism is:
-$f$ is a morphism from $A$ to $B$ if $f$ preserves identity and composition (associative).
-Therefore, if $A$ is a ring or a group, $Hom (A,B)$ is a set of morphism from $A$ to $B$ then is it a ring homomorphism and group homomorphism? And when $A$ is a ring then $f$ being group homomorphism from $A$ to $B$ is in $Hom(A,B)$ because $A$ is a ring so it is also a group? Probably, I describe my questions very clumsily so hope that you could understand and help me answer it.