+ 2
Whats the difference between a method () and a function ()
I know you call them so that you don't rewrite the same code all the time. but I don't know the difference
4 Respuestas
+ 5
A function is outside a class. A method is a function, but inside a class.
0
How to create a function outside a class?
This is the explanation I thought of:
https://stackoverflow.com/questions/155609/difference-between-a-method-and-a-function
0
both are same
0
methods are fuctions that runs on objects