5 ms·
> The only real form of code reuse that OOP addresses is direct object inheritance. That is incorrect and it's misinformation about OOP. The most important me
by ww520 12y ago
> The only real form of code reuse that OOP addresses is direct object inheritance.
That is incorrect and it's misinformation about OOP. The most important mechanism for code reuse is a function or method, and it's the essential part of OOP. You put code into a function/method that can be used repeatedly. Function exists in most languages and is not the exclusive domain of functional programming.