If a person of X race were raised in Y (different) race's culture, would they "pick up" the stat bonuses, penalties and racial abilities of Y race?
If so, how would one determine which bonuses, penalties, or racial abilities they get?
If it's all genetics, how would they know how racial magic of their kind works to be able to use appropriate devices (or are such things inherent in the magic)?
If it's all culture and upbringing, could they pass as Y race in the "outside world?"
Case in point: an elf or half elf is raised by dwarves, as if he were a dwarf and not of another race.
Consider the reverse case: a dwarf raised by elves or half elves and raised as if he were one.
Bottom line: are racial abilities, bonuses and stats nature or nurture, or a bit of both?
I'm asking about mainly D&D 3.5 / Pathfinder, but I am interested in differences in 4e and 5e, if applicable to the rulings on this.