A function is the same as a method of an object, but the difference is whether the variables (states) are part integrated (object) or not (function).
So, an object is like some black box machine (method) and it has switches on it (states), whereas a function is like a black box that has a shoot on it and I take some other black boxes and drop it in the shoot and it spits out some pyramids.
It that the main difference? Just integration of variables with the function?
Are there any more important differences?
So, an object is like some black box machine (method) and it has switches on it (states), whereas a function is like a black box that has a shoot on it and I take some other black boxes and drop it in the shoot and it spits out some pyramids.
It that the main difference? Just integration of variables with the function?
Are there any more important differences?
