[General lang] how to call a parent

A. Lloyd Flanagan alloydflanagan at attbi.com
Mon Jun 16 16:35:16 CEST 2003


JOHN FABIANI <johnf at jfcomputer.com> wrote in message news:<mailman.1055717427.23489.python-list at python.org>...
> I never thought of keeping a linked list of the parents of an object but
> that will work.  Thanks to all for the info.  I'm also checking on the
> reserved work 'super'.  I'm reading an older book.
> 
> John
> 
I'm sensing some fundamental confusion here.  There are several common
meanings for the term "parent" of an object.

The most fundamental, and the one most posts are addressing, is that
of a parent of a class being one of its superclasses in an inheritance
relationship.  That's the type of parent to which super() applies. 
I'm not sure if Visual Foxpro supports true inheritance; if it
doesn't, the concept probably won't be clear to you.

The meaning of "parent" which is aided by keeping a linked list is
when parent refers to an object (not a class) in some form of
hierarchy of objects, such as a tree.

I've also seen "parent" used in visual environments to refer to the
container of a control.  In this case "parent" refers to an object
which may be a totally different class, and the relationship is one
where the container "owns" the control and constrains its behavior.

So what sort of "parent" are you talking about here?




More information about the Python-list mailing list