I am aware that Islam encourages looking after the orphans. It also prohibits giving your own lineage in place of their orignaloriginal lineage (through a change in surname).
But what is the ruling related to giving them inheritance after our death?