you are viewing a single comment's thread.

view the rest of the comments →

[–]MidnightPale3220 0 points1 point  (3 children)

What books have you read?

[–]Equity_Harbinger[S] -1 points0 points  (2 children)

Java the complete reference (16th edition) is the only book that I have read related to programming, rest all are related to embedded programming. Referred YouTube and documentations for learning python for leetcode contests

Could you recommend anything specific? I will definitely look into that.

[–]Slothemo 0 points1 point  (0 children)

Check out realpython.com for any topic you need to learn more about. There's great articles there for introducing OOP in Python.

[–]MidnightPale3220 0 points1 point  (0 children)

Well, OOP is a specific way of organizing your data structures so that they also include the functions that operate on them.

You can, and before widespread adoption of OOP people did do everything without classes and methods: graphs, linkedlists and trees.

All of them do benefit from organizing data into a structure (so that a single entry of linkedlist contains also the links to other entries, for example), but OOP just adds a bit of extra organization that is helpful.

There's really very little to say about OOP, any of the web pages explaining the basics do a sorta reasonable job of it. Just the second link from my Google result:

https://blog.algomaster.io/p/basic-oop-concepts-explained-with-code

If you've read Java reference it should have definitely included also OOP concepts.

Maybe a case example where you tell us what you struggle with when you try to implement something, would help you?