r/learnjava • u/Zappy__Boy • 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.