in reply to Re: maintaining constructor inheritance cascade
in thread maintaining constructor inheritance cascade
And this is the output from your mod:_initParent a b c [ISA: ] _initChild a b c [ISA: myParent] _initGrandChild a b c [ISA: myChild]
The myParent->_init() code never got executed. Yes, you could call $self->SUPER::_init(@_) in your myChild->_init(), but that is missing the point._initChild (a b c) _initGrandChild a b c [ISA: myChild]
The _initXXX() methods are private to the respective classes - they are not part of the external interface, and are not intended to be specialised by a child class.
Hope that makes sense?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2: maintaining constructor inheritance cascade
by dragonchild (Archbishop) on May 14, 2003 at 15:09 UTC | |
by tilly (Archbishop) on May 14, 2003 at 15:30 UTC | |
by jaa (Friar) on May 14, 2003 at 15:31 UTC | |
by chip (Curate) on May 14, 2003 at 16:08 UTC |