[Tutor] Design Question... from a newbie

Blake Winton bwinton at latte.ca
Wed Oct 20 22:08:38 CEST 2004


nik wrote:
>>    def __init__(self, name=' ', job = 1, race = 1):
> A base class could be person (with basic attributes like 'first name'), 
> and then you create derived classes being mage, warrior etc each with 
> attributes appropriate to that type of character.

Just as a side point, I think I would make subclasses based on race, as 
opposed to job, because I've worked in several jobs, and expect to 
change jobs at least twice more before I'm done working, but I've never 
been able to not be an Elf.  ;)

Later,
Blake.



More information about the Tutor mailing list