How long is the life of a car?

Cars, like people, also have longevity. The length of human life is affected by many factors such as genes and health conditions. What factors will influence the length of life of a car?