DEV Community

Discussion on: What was the hardest concept for you to grasp when learning Object-Oriented Programming?

Collapse
 
xtofl profile image
xtofl

It took me 10 years and 3 to 4 exploded class hierarchies to realize that inheritance is probably not what you need to promote code reuse.

I wonder why they keep teaching that. Code reuse => functions (or object aggregation, at best!)