Imprinting.

Some animals learn basic survival knowledge, such as the identity of their parents or birthplace, early in life in a process called imprinting.

Konrad Lorenz showed that when baby geese spent the first few hours of life (the sensitive, or critical, period) with him, they imprinted on him as their parent.

Wood ducks: