3 ms·
Python has public/protected/private as well as static/class/instance methods. > doesn't require you to have object instances to call non-static functions Not
by 1718627440 1y ago
Python has public/protected/private as well as static/class/instance methods.
> doesn't require you to have object instances to call non-static functions
Not sure, what you mean, because you need to pass something for self?
Either:
obj.foo (args...);
Or:
cls.foo (obj, args...);