Why aren't racially mixed people sterile?

today in biology class our teacher told us that if two different species like a horse and a donkey mate, the offspring is sterile.

if this is so, how was barack obama able to have children if he had a white mother and a black father, both different species.
9 answers 9