classmethod

noun
UK /ˈklɑːsˌmɛθəd/
US /ˈklæsˌmɛθəd/

A special tool in a computer program that works for the whole group instead of just one thing.

We used a classmethod to count how many toys the whole class has.


OTHER MEANINGS

2. In Python, a method bound to the class rather than to an instance, often created with the @classmethod decorator.

The classmethod created a new object from a string.

3. A function that can be called on the class itself without making an object first.

You can call the classmethod directly on the class name.

4. A way to share behavior across all objects of the same kind.

The classmethod kept a shared count for every instance.