Sure, but that's desirable with, maybe, 5% of the code re-use opportunities I run across.
I'm not saying to never use classes. I just got really confused about them being pushed as one of the dominant forms of code-reuse.
I'm not saying to never use classes. I just got really confused about them being pushed as one of the dominant forms of code-reuse.
const dog = new Dog
dog.woof()
Now you see how simple OO is, let's build banking software.