Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: OO - problem with inheritanceby frag (Hermit) |
on Jan 14, 2002 at 20:27 UTC ( [id://138601]=note: print w/replies, xml ) | Need Help?? |
It sounds like you're wrestling with the question of how
to create class data so that the accessors are inherited but not the data itself.
I think you'll find perltootc - Tom's OO Tutorial for Class Data in Perl very useful, in particular the section Inheritance Concerns. Borrowing code from that, you can use something like this:
To initialize the package-specific %parameter_config, throw in similar magic into &base_class::new. -- Frag.
In Section
Seekers of Perl Wisdom
|
|