Help


from Wikipedia
« »  
Adherents of object oriented methodologies further object to the " code library " use of copy and paste.
Instead of making multiple mutated copies of a generic algorithm, an object oriented approach would abstract the algorithm into a reusable encapsulated class.
The class is written flexibly, with full support of inheritance and overloading, so that all calling code can be interfaced to use this generic code directly, rather than mutating the original.
As additional functionality is required, the library is extended ( while retaining backward compatibility ).
This way, if the original algorithm has a bug to fix or can be improved, all software using it stands to benefit.

1.891 seconds.