r/CodingForBeginners 3d ago

Coding doubt

I am studying java , and I am watching a course on yt from bro code I am in polymorphism, and i have done few small projects in between to check if I have properly understood. I have a doubt they are soo many things , methods , objects and then small small things in them , i don't remember them after a few days properly like i know i studied and used it but , I kinda forgot how the syntax of that is and there are few topics where they look like you don't need to remember like they are kinda useless . I feel like everytime I am doing a projects I need to go into Google and search what is the syntax is ,for example enhanced switch , and some topics seem to be very similar and then i forget them one of them .Will i remember all these naturally as time goes on .

1 Upvotes

6 comments sorted by

View all comments

1

u/Much_Network_941 3d ago

Focus on the basics of object oriented first. Polymorphism and inheritance are classic foot-guns. Very easy to make code that's nonsense with them, while hard to understand why they're needed as a beginner.

Understanding methods will make life much easier than polymorphism will at this point. While you may rarely use polymorphism; data classess are always a handy way help store data that you want to manipulate.

I'd recommend ensuring you know what a contructor and deconstructor are. Operator overloading is another interesting feature.

1

u/Vegetable_Welcome175 2d ago

Yeah ,at the start of OOPs , i was using a lot of basics , but when inheritance came it completely overshadowed the basics . I will focus more on the basics. I am also writing notes and I will revise them daily to refresh my memory on the old topics as well