3 ms·
Think about it from OO's creator's perspective. For instance, this is what the creator of inheritance probably thought: "All of these objects do very similar t
by Spyckie 18y ago
Think about it from OO's creator's perspective. For instance, this is what the creator of inheritance probably thought:
"All of these objects do very similar things. I don't want to have to write these functions over an over again if they're so similar..." and inheritance was born.
Most OO concepts are about writing and seeing less code. I think the best way to grasp OO is to ban ctrl+c for anything longer than 2 lines. It really forces you to think about structure and code reusability, which is what OO is all about.