Composition instead of inheritance

Jean-Michel Pichavant jeanmichel at
Fri Apr 29 05:23:39 EDT 2011

Ben Finney wrote:
> Ethan Furman <ethan at> writes:
>> Carl Banks wrote:
>>> That's not what we mean by composition. Composition is when one
>>> object calls upon another object that it owns to implement some of
>>> its behavior. Often used to model a part/whole relationship, hence
>>> the name.
>> Hmmm. Okay -- any ideas for a better term? Something that describes
>> taking different source classes and fusing them into a new whole,
>> possibly using single-inheritance... Frankenstein, maybe? ;)
> (Remember that Frankenstein was not the monster, but the scientist.)
> “Hybrid”?
Actualy this story is about the villagers being the monsters :o)


More information about the Python-list mailing list