From OOP confusion to understanding: My journey with encapsulation, inheritance, composition, interfaces, and polymorphism.

Me a few weeks ago: “I’ll never understand OOP. It’s just too confusing.” Me today: “Wait… inheritance isn’t always the answer. Sometimes, composition actually makes more sense.” Honestly, this did not happen overnight. I spent days trying to understand how all these concepts fit together encapsulation, inheritance, composition, interfaces, polymorphism and when to use what. I started coding small examples for each one. Most of them broke at first 😅 but with every error, things started to make a little more sense. I have now organized all those practice files topic wise and uploaded them to github. It’s not perfect, but it feels good to look back and see progress. 🔗 https://lnkd.in/dkqaDdbC #Java #OOP #GitHub #LearningJourney #KeepLearning #Programming

  • graphical user interface, text

I believe any minute spend coding is a time well spent.

Like
Reply

Nice Sharing areeb, it will help students like me who are not good at finding the right content for their course. Keep it up and help others .

Same happens with me when i start learning OOP in java but putting a lot of efforts, now i am confident how to use these concepts. Also try to learn advanced topics like Collection framework i.e Arraylist, hashmap etc.

See more comments

To view or add a comment, sign in

Explore content categories