Variable inheritance

Samuel A. Falvo II kc5tja at dolphin.openprojects.net
Tue May 22 10:53:17 EDT 2001


On Tue, 22 May 2001 12:23:43 +0400 (MSD), Roman Suzi wrote:
>This is indeed a contra-example and is a bad design, because
>it leeds to combinatorically bloated code, in which you need
>M*N*K... classes to have all kinds of objects.

Yes.  But unless the user (versus the programmer) is responsible for
dynamically creating objects of various types, this simply isn't a problem.

If the user DOES have some involvement with the creation of objects, then
it's clear that delegation and aggregation are the only reasonable solution
(or, at least, the easiest to implement and maintain).

-- 
KC5TJA/6, DM13, QRP-L #1447
Samuel A. Falvo II
Oceanside, CA



More information about the Python-list mailing list