I think they made it pretty clear, in ST3, that the Enterprise was being retired because of here age and damage and not the entire class.
Also, current US naval ships are designed with a fifty year (I could be wrong) lifespan, but the designers have built in enough adaptability that they...