OOP kills my brain , what I should to do to understand it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 14

OOP kills my brain , what I should to do to understand it?

26th Apr 2020, 12:56 PM
Eskalate
Eskalate - avatar
38 Answers
+ 37
Same here bro. Oop is what made me quit programming for a month. But later I understood the concepts. Now, it seems very easy to me. Sometimes you may not understand from solo learn. So, you should check some other sites. You can also post your problem here. I will try to help as much as I can
26th Apr 2020, 1:07 PM
Sajid
Sajid - avatar
+ 18
Are you writing code yourself? Because that's important. Only by practicing with your own hands, gradually things will fall into place in your head. Only reading the tutorials is not enough.
26th Apr 2020, 1:13 PM
HonFu
HonFu - avatar
+ 11
Oop is very simple and easy to implement. Consider this! Class - gang Function - gangmembers You - object Class gang: Def gangmembers1: Kills yr enemy Def gangmembers2: Pass Object = gang () Object.ganmemer1(kill my enemy)
27th Apr 2020, 12:04 PM
Rahul Singh
Rahul Singh - avatar
+ 8
You have to think from how to solve a problem into how to modelling a problem into objects and their relation of each other to solve the problem/ create the system. OOP , it's not about programming skill but merely a way to think. A way to modelling a system. Let me give you a problem. How you print a hello world?. If you think structural. You'll probably think to call print method and put "Hello World" into the parameter. If you think OOP you'll create a class called monitor that have a display text method. And then you give the text "Hello world" to the object. It means that your display object is displaying a text "Hello world" .
28th Apr 2020, 7:07 AM
Valmob101
Valmob101 - avatar
+ 6
See coding on the phone goes well with me.... practice it ....after some time you will love it....and for understanding part ...you can refer YouTube that will make you understand everything about OOP step by step...😊
26th Apr 2020, 1:13 PM
Aditya Raj
Aditya Raj - avatar
+ 6
Please see object oriented programming Section of Java in learning Java .It will help you to get clear idea about OOP.
28th Apr 2020, 5:01 AM
📈SmileGoodHope📈
📈SmileGoodHope📈 - avatar
+ 4
Are you okay with functions? You seem to be doing C++. Maybe it's best to get your hands dirty for a while. You can do everything without OOP (although OOP can be more convenient). So look for little practice projects, get some experience under your belt. After a while, when you look at OOP again, it might, almost magically, look less difficult.
26th Apr 2020, 1:18 PM
HonFu
HonFu - avatar
+ 4
The world is filled with objects. Imagine you were making a game that involves fighting critters, you make a class called "critter", with properties like "attack()". As you know, objects have properties. There are different types of critters, so you could use inheritance to allow for different types of critters to all have an "attack()" function, but have other functions that vary from critter to critter. That's OOP in a nutshell.
28th May 2020, 6:51 AM
SapphireBlue
SapphireBlue - avatar
+ 3
Seriously, no C++. Start with C# or Python, understand concepts, then apply them to C++ after learning
28th Apr 2020, 9:07 AM
Graveen
Graveen - avatar
+ 2
Imagine that OOP is everywhere, and every object in your world has class parent, or is a class parent, e.g: dog is child of class named "Animal" and it has some methods from parent class: dog is able to eat, walk, but only class named "dog" has method named "bark". Same with others. Hope this helps.
29th Apr 2020, 11:48 AM
Bartek Wilk
Bartek Wilk - avatar
+ 1
Me too dude RIP java programmer
27th Apr 2020, 4:07 PM
MR. PROGRAMMER
MR. PROGRAMMER - avatar
+ 1
Eskalate youre not alone. I'm also at OOP now and it is mopping the floor with me. I have learnt that we should try find other resources and videos that explain concepts in way that we understand them then we'll come back to Solo Learn. This place is awesome after all.
27th Apr 2020, 6:13 PM
Butcher
Butcher - avatar
+ 1
'java by durga sir' in YouTube. channel: Durga soft solutions i know you are learning c++,but consider this advice and thank me later!
28th Apr 2020, 1:39 AM
Tarun Teja
Tarun Teja - avatar
+ 1
I have a suggestion after you learn your direct programming practice after that
28th Apr 2020, 4:12 AM
Muhammad Yazid
Muhammad Yazid - avatar
+ 1
I have the same problem
28th Apr 2020, 4:39 AM
Khatimah Sadat
Khatimah Sadat - avatar
+ 1
Hey, yea, you'll eventually understand OOP as long as you keep at it. Just keep picking away at it, keep asking questions, and search for answers to them. Questions such as What is the point of OOP? Why can't we just use procedural programming? What is encapsulation? What are abstractions and why are they useful? are all valid questions. Don't give up. Just keep at it and you'll eventually get it.
28th Apr 2020, 7:22 AM
Tricker
0
Yeah , maybe . OOP is hard to me for 2 reasons : 1) understanding 2) coding on the phone , it's too hard
26th Apr 2020, 1:10 PM
Eskalate
Eskalate - avatar
0
Eskalate What are you using to learn oop? I personally learned oop from mobile. Please just put your problems here.
26th Apr 2020, 1:12 PM
Sajid
Sajid - avatar
0
maybe i have difficults because of i have no Oop practice, just learning
26th Apr 2020, 1:15 PM
Eskalate
Eskalate - avatar
0
Eskalate When you get badly stucked in a problem here in solo learn and your head hurts, don't spend too much time on it. Just move forward. You don't have to learn everything from here. After you complete the course here, take the course through another website. This will really boost your skills as well as confidence. Everything will seem much more easier as well. Just trust me on that.
26th Apr 2020, 1:41 PM
Sajid
Sajid - avatar