I predict that 50 years from now there will be more functioning cars from the 1960s than from the 2020s. With the combination of quickly obsoleting technology that won't be fixable and overly interconnected electronics that become impossible to diagnose after a while, there's not much hope for current and future cars to be anything but disposable.
Old mechanical cars though, can be kept running essentialy forever by just someone with access to a machine shop and some patience.