in reply to Re: •Re: Objects: how to get parent object from child $self reference ?
in thread Objects: how to get parent object from child $self reference ?

You probably don't have an "IS-A" relationship then, but rather a "HAS-A" relationship. One instance of one class (your "parent class") owning a bunch of other specialized classes (your "child class").

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: •Re: Objects: how to get parent object from child $self reference ?

Replies are listed 'Best First'.
Re: •Re: Re: •Re: Objects: how to get parent object from child $self reference ?
by Anonymous Monk on Feb 28, 2004 at 02:40 UTC
    Hi,

    Sorry for my dumbness, but this still doesn't help me a lot. I'd just like to know if I have reference to instance, can I somehow get reference to parent instance and how?

    Thanks,

    Robert.