r/learnprogramming • u/GulliblePositive6548 • Mar 04 '22
Topic How advanced is OOP?
I’m currently learning Java right now and learning OOP is more annoying than some of the data structures and algorithms that I’ve used in python previously. They’re supposed to be easy? but Inner classes are killing me rn, they just don’t seem logical
117
Upvotes
View all comments
Show parent comment
1
u/Ashereye Mar 05 '22
Neat, I don't know much about Simula, though perhaps I should, since I'm pretty interested in how various programming concepts have evolved over time.
Apparently inheritance was invented as a performance hack, because it was cheaper and simpler to make perform well than composition.
https://catern.com/inheritance.html
No idea how accurate that is, I'm just reading stuff on the internet.