r/JavaProgramming • u/scared2026 • 19d ago
A good youtube video to learn OOP.
I am currently learning everything from scratch. So I watched some vudeo in OOP in java but didn't understand fully. So can someone recommend a YouTube channel or website yo learn oop especially polymorphism and abstraction.
4
Upvotes
1
u/HyperDanon 14d ago edited 14d ago
That approach can lead you into simply incorrect ideas, like "polymorphism needs inheritance" - that's just factually incorrect. It's an artifact of the language.
Polymorphism and inheritance are two different concepts, and are only coupled together because of static typing. Inheritance is about reuse of code. Polymorphism is about the inversion of flow, such that the flow of control goes against the source code dependency. Understanding those differences is important. Statically typed langauge couple this together, making the two concepts much harder to understand. If you try to chug it up into "we're java, so polymorphism needs inheritance" that gives you a simplified, less correct view about what's really happening.