in reply to Re^4: Creating dynamic parent/child relationships
in thread Creating dynamic parent/child relationships
Thanks, Corion. Yes, I tried your advice. Unfortunately, it appears my classes are too reliant on inheritance and I can't implement your idea in any sane way. It seems that if I treat the classes as nothing more than containers for methods using your suggestion, I lose access to the data in the attributes contained in the parent classes. My child objects need access to the parent attributes to work.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Creating dynamic parent/child relationships
by Corion (Patriarch) on Sep 04, 2019 at 13:28 UTC | |
by nysus (Parson) on Sep 04, 2019 at 14:36 UTC |