The passage of genetic material from one generation to the next.