Python Arena

Module 40

Class attributes

Values and methods that belong to the class itself. Class variables shared by all objects, class methods and static methods, default values for parameters (and the trap of a list as a default), and a larger program where several classes work together.

Steps

  1. Class variables
  2. Class methods and static methods
  3. Default values for parameters
  4. Classes working together