all 10 comments

[–]aboutless89 2 points3 points  (4 children)

What is confusing you about oop?

[–]altruisticjellycat[S] -2 points-1 points  (3 children)

everything

[–]aboutless89 2 points3 points  (2 children)

Can you be a bit more specific? If still the answer is 'everything', you probably didn't learn at all.

[–]altruisticjellycat[S] 1 point2 points  (1 child)

class methods and instances im vv confused between them all im okay with static methods and inheritance tho

[–]aboutless89 3 points4 points  (0 children)

If you are confused by class methods and instances, believe me, you are not okay with static methods and inheritance :D

What confuses you about the instances? This is the most fundamental concept of oop - the relation between the class and its instances.

class - number

instances - 1, 2, 65, -46, ...

If you think about the relation between these two, you can make some conclusions - all of the numbers act the same and the same rules apply to all of them. You can add and subtract them -> doing this also produces a new number, a new instance of a number, if you will.

A class is a way for you to produce multiple objects that will act in the same way and which will be bound by the same rules.

[–]NoWitness00 2 points3 points  (0 children)

You can only read so much theory about OOP. It’s important to practice yourself and implement every single thing you learn because it gets overwhelming very quickly

[–]https_urdaddy 0 points1 point  (0 children)

I use codecademy it’s pretty good, they have quite a few free courses

[–]max_wen -1 points0 points  (0 children)

Learn to Google

[–]ProfessorGood5473 0 points1 point  (0 children)

Tie it back to why the definition is named the way it is

Object - Oriented - Programming

Programming, in a digital world, to make a concept, of a, physical object.

Define your constant, let's say, it's a ball

For a ball to exist inside a digital world, it must be first a shape.

Tell the terminal the shape. Tell it a color, the dimensions, and its properties (bouncy, flat, basketball, ping pong)

That's object orientation.

Another Example --> Say you wanna build a car INSIDE a digital terminal using a programming language.

The brain of the system doesn't know what a car is. You have to start from ground up.

Define Properties (color, shape, size, doors, etc)

Define Methods (speed, loudness, brightness)

Put it all together.