[Tutor] Newbie class question
Sean 'Shaleh' Perry
shalehperry@attbi.com
Wed, 29 May 2002 15:39:00 -0700 (PDT)
>
> This is the class which appear to be interacting but I'm not sure at this
> point
>
> class Side:
> __filesadded = 0
> K = pjColour.Colour('Black')
> C = pjColour.Colour('Cyan')
> M = pjColour.Colour('Magenta')
> Y = pjColour.Colour('Yellow')
>
> def __init__(self):
> __filesadded = 0
>
when you define a variable at the top of a class you make it global to all
instances of the class (like a static variable in C++).