Top "Class-method" questions

Methods that are called on a class instead of on an object.

Accessing class method in objective c. Using self or classname?

I am learning iOS programming and am confused by the following code regarding the use of keyword self. From my …

ios objective-c compiler-errors class-method
Calling ruby method without instantiating class

If I call a method on a rails active model method like so: class Foo < ActiveRecord::Base end Foo.…

ruby-on-rails ruby instance-methods class-method
PHP get static methods

i want to call a class method by a var (like this): $var = "read"; $params = array(...); //some parameter if(/* MyClass …

php reflection class-method
Static method (which isn't class method) in objective C

While reading THIS question and accepted answer for the question, I was unable to get the difference between these two …

objective-c static-methods class-method
Declaring new variables inside class methods

I just read about class and method variables in Python, and I am wondering if there is a difference between …

python class class-method
super and __new__ confusion

As what I just learned, I can use super() this way: super(class, obj_of_class-or-_subclass_of_class) Code …

python class-method
Python - can I programmatically decorate class methods from a class instance?

I have an object hierarchy in which almost all of the methods are class methods. It looks like the following: …

python decorator class-method
Why I cannot use python module concurrent.futures in class method?

I want to make my class method runs parallel, but it only produces some kind of error that I can …

python class parallel-processing class-method concurrent.futures
Same name for classmethod and instancemethod

I'd like to do something like this: class X: @classmethod def id(cls): return cls.__name__ def id(self): return …

python python-3.x methods class-method
How to initialize classes (not instances) in Python?

I want to merge constraints from the current and inherited classes only once a class is loaded (not per object!). …

python oop inheritance class-method