[ABE.pm] And another thing...

Faber J. Fedor faber at linuxnj.com
Mon May 22 10:04:26 PDT 2006


On 22/05/06 07:40 -0400, Ricardo SIGNES wrote:
> * "Faber J. Fedor" <faber at linuxnj.com> [2006-05-17T20:15:08]
> > How do I pass a variable from the superclass to the subclass?  Nothing
> > I've tried works.
> 
> I think your phrasing of the question here is confusing and/or confused.  I
> think you mean this, but I might be wrong:
> 
>   How do I make a base class store data that is shared by its derived classes?

Right, but "base class" == "superclass" and "derived class" ==
"subclass", no?


> Any child of ParentClass can call its own get_dbh and will be handed back a
> connection created by the parent and shared for all children.  Is any part of
> the above unclear?  It's early, so I'm not sure whether it should be confusing
> or not! ;)

Not at all.  As I stated before, my problem was not calling the base
class' construstor when I created the derived class.


-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com





More information about the ABE-pm mailing list