Class methods are functions defined within a class and are used to perform operations on class attributes.