imprinting
Biological/psychological term for the rapid learning process in young animals where they form an attachment to a parent or object. Also used metaphorically for early, lasting influences.
Chicks recognize their parent through imprinting right after hatching.
Childhood experiences influence personality formation like imprinting.