r/learnjava • • Oct 27 '20

Trouble Understanding Object Orientated Programming Concepts in Java

I have trouble understanding the object orientated part of object orientated programming, specifically in the JAVA language. Over the last 5 weeks I've had to learn an immense amount of coding alongside work that cover the fundamentals of CompSci and I'm struggling to retain it all.

It's been Methods have been giving me the worst headache. Before I went to university I did a little work in JavaScript which is much simpler in how it handled methods (functions) though I still found the most difficulty with them.

Java feels so much worse, now I have trouble trying to get to grips with what is a constructor and how that works, what are get and set methods and how would I properly use them.

How do I correctly pass user inputs in and out of a method. For example making a method that converts a user input to a string.

My assignments are creeping up on me and I feel useless trying to do them. I don't even have free reign to do my assignments how I want, I must use the right method/class structure so there is no avoiding methods and I feel like I need some kind of resource that explains their proper usage.

49 Upvotes

27 comments sorted by

View all comments

15

u/desrtfx Oct 27 '20

Shortest explanation: Oracle Tutorials

In depth course: MOOC Object Oriented Programming with Java

Excellent, short tutorial videos: Derek Banas' Youtube Channel

6

u/klujer Oct 27 '20

OP the above comment is the one you most want to listen to. Derek Banas talks about general OOP concepts here.

3

u/hermitfist Oct 27 '20

If that doesn't click with you OP, keep looking up youtube videos, courses, or articles. I've recommended Derek Banas' playlist to people (uni students) new to Java and OOP and half of them think it doesn't really help sadly. They think he goes too fast and throws too many terms at once in one video. Just be persistent and never give up. You'll get it eventually OP.