This is my understanding of the differences between rewriting and rewriting in terms of a real example:
Suppose you have a car manufacturer. You are famous and satisfied with your customers, as they always trust you and buy your products.
To continue your business, you have basically 2 options:
All things go, and you know that you are on the right track. Thus, you want not only to keep the previous models, but also to continue to improve them. Although, how did it happen? Perhaps adding some new features to existing models! Now new models have all the features, as well as new advanced features.
You know that the path you went through was kind of wrong! what a terrible approach !! You quickly notice that the company must change the whole technology, otherwise it will experience harsh situations (for example, bankruptcy or so ...)
In the end, from a programming point of view, the first approach relates to overriding, as you add a few new BEHAVIORS to your cars, preserving the old behavior that the car had, while the second approach relates to rewriting, because you want to change the behavior (I) completely and develop new features from scratch.
Hope this helps you.
inverted_index Nov 17 '16 at 19:53 2016-11-17 19:53
source share