I think it was proven that personality is 50% genes and 50% surroundings.
So I guess it would be a 50/50 chance of being immature if your parents are.
But I don't know if immaturity would be a gene...
Or are you meaning surroundings like when you are brought up?
Leave a kitten to grow with tiger cubs it will become fierce like the tiger.