An heir is a person who receives the money or property of someone who dies.
The princess was the heir to the king and queen’s throne.
Example picture