r/learnprogramming • • 16d ago

Suggestions regarding programming

I'm 18. I'm currently learning Java and I feel I'm unable to understand stuff in it, especially object oriented programming. The practice feels like I'm falling behind.

15 Upvotes

39 comments sorted by

View all comments

1

u/Marisakis 16d ago

Try thinking about it the C way?

In C, there's no classes, just structs (objects) which only hold data. Then you have functions (methods) to manipulate or create data.

Java classes basically smushes these concepts together, but if you think of them as separate that might help.

"What exists?" versus "What do I need to do with this?"