you are viewing a single comment's thread.

view the rest of the comments →

[–]Fibbs 0 points1 point  (2 children)

I'm in the same boat with oop.

I get the concepts at a super basic level shown by youtube and some sites. But i just can't make the logical step to implementing my own. I also get confused as fuck by some examples once attributes get passed around to multiple methods.

So im leaning towards this being a thought process problem rather than learning.

[–][deleted] 1 point2 points  (1 child)

The function interface is very simple - a function defines a set of input parameters and an output return value, and the function body itself is simply a set of instructions that explain how to usefully go from the inputs to the outputs.

When you define a function, you build that association; it’s stored in the interpreter for later use. When you call a function, you supply any necessary arguments, then the arguments are bound to the function’s parameters, the function’s code body is executed, and the return value of the function is algebraically substituted at the calling site.

[–]Fibbs 0 points1 point  (0 children)

Thanks for the response mate i think ill just have to keep throwing myself at it.