When creating methods for classes, you have to self as the first argument.
Now I know...
The method is a function. The function takes the object (that was created from the class) as its VERY argument.
Now I know...
The method is a function. The function takes the object (that was created from the class) as its VERY argument.
No comments:
Post a Comment