0
I still don't get the difference between classes/merhods/functlons...
"understand.that" When syntax like that comes up im lost. i took google and stanford courses for hours with no issue but when l need to refer to those i get lost in that syntax. what is in this example understand.that the function or class or method?
2 Answers
+ 1
classes are combination of data and its associate functions.
methods are attributes of class which you can perform on them.
functions are two types..predefined and user defined. in user defined functions you can write functions to do your task and you can call it whenever you need, no need to write same code again and again.
for example : in python we have class, list. append, insert etc are methods of class. it works with class like list.append ('x')
and function are len , range etc. these are pre defined functions. you can write your own functions like this.
0
The first thing is object, the second a method on the object. Note that Java will require () after the method name.