> 2. Why use a class in the first place? What is the purpose of
> constructing a class instead of just writing a program with a bunch
> of functions?

Sometimes, you DO just write programs with functions.

A class can be useful if you have a bunch of a thing. Like a monster.
Each monster can know its own location, hitpoints, etc.

Alan

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to