The Shang Dynasty followed the Xia Dynasty.
The Shang Dynasty, also known as the Yin Dynasty, followed a similar hereditary system of rule that the Xia Dynasty had before they collapsed. The rule was that the emperor's son would take over the throne after the father's death.