A class may contain fields and methods. Class methods are used to operate with classes themselves but not with class objects. The Self predefined variable cannot be used in them. The method, which enables the user to get some information about a class, is a good example of a class method. Class fields are class global variables. They are common for all objects of this class. If a class field was modified in some class object, this field is modified in all other objects.
See also: