Re: [Tutor] class design - base classes with optional properties?

2009-01-22 Thread Kent Johnson
On Thu, Jan 22, 2009 at 6:24 PM, Alan Gauld wrote: > "Marcus Goldfish" wrote > >> I'm trying to design a base class for a hierarchy. The properties I want >> to >> specify for the base class depend on the values of other properties of the >> base class. > > Don't worry so much about the properti

Re: [Tutor] class design - base classes with optional properties?

2009-01-22 Thread Alan Gauld
"Marcus Goldfish" wrote I'm trying to design a base class for a hierarchy. The properties I want to specify for the base class depend on the values of other properties of the base class. Don't worry so much about the properties, the important thing to focus on in your base classes is the

Re: [Tutor] class design - base classes with optional properties?

2009-01-22 Thread Kent Johnson
On Thu, Jan 22, 2009 at 3:04 PM, Marcus Goldfish wrote: > I'm trying to design a base class for a hierarchy. The properties I want to > specify for the base class depend on the values of other properties of the > base class. For instance, in this toy example of a base FoodProcessor > class: > cl

[Tutor] class design - base classes with optional properties?

2009-01-22 Thread Marcus Goldfish
I'm trying to design a base class for a hierarchy. The properties I want to specify for the base class depend on the values of other properties of the base class. For instance, in this toy example of a base FoodProcessor class: class FoodProcessor: "Model for a kitchen appliance food processo