in reply to OO: sharing data across inheritance

In traditional OO, your child class inherits the behavior of the parent class, not the data of a specific parent object.

However, you may want to check out prototyped-based programming via Class::Prototyped, as illustrated in a recent column of mine.

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

  • Comment on •Re: OO: sharing data across inheritance

Replies are listed 'Best First'.
Re: OO: sharing data across inheritance
by Abigail-II (Bishop) on Jun 03, 2004 at 22:54 UTC
    In traditional OO, your child class inherits the behavior of the parent class, not the data of a specific parent object.
    Yeah, but the de facto Perl standard of doing OO means you do inherit all the data of a specific parent object.

    Abigail