Wikipedia says:
In the metaphysics of identity, the ship of Theseus is a thought experiment that raises the question of whether a ship—standing for an object in general—that has had all of its components replaced remains fundamentally the same object.