+ 14
OOP kills my brain , what I should to do to understand it?
40 ответов
+ 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
+ 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.
+ 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)
+ 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" .
+ 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...😊
+ 6
Please see object oriented programming Section of Java in learning Java .It will help you to get clear idea about OOP.
+ 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.
+ 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.
+ 3
Seriously, no C++. Start with C# or Python, understand concepts, then apply them to C++ after learning
+ 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.
+ 1
Me too dude RIP java programmer
+ 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.
+ 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!
+ 1
I have a suggestion after you learn your direct programming practice after that
+ 1
I have the same problem
+ 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.
0
Yeah , maybe . OOP is hard to me for 2 reasons :
1) understanding
2) coding on the phone , it's too hard
0
Eskalate What are you using to learn oop? I personally learned oop from mobile. Please just put your problems here.
0
maybe i have difficults because of i have no Oop practice, just learning
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.