2 ms·
I think pvg's point is that "class method" is often used interchangeably with "static function" -- that is, functions that are not called on instances (e.g. Som
by cstrahan 10y ago
I think pvg's point is that "class method" is often used interchangeably with "static function" -- that is, functions that are not called on instances (e.g. SomeClass.foo() vs (new SomeClass()).foo()).
It would seem that you were talking about what most people would call instance methods, or commonly just "methods" (unless you're in a language like Ruby, where you don't have functions as a first class entity -- if you want "class methods" as they are called, you define a method on the target class object's meta-class.)