in reply to Re: Inheritance confused
in thread Inheritance confused
Thanks derby,
I just modified my code, and you're right, removed the Parent reference also resolve the problem.
However, I have reason to keep the Base object inside {Parent}, as there are other constructors which will be invoked by other methods in Lite class.
Since I have the Base reference, then I can make this shareable ( and I need to ) amount other on-the-fly constructed objects. Is there possible to keep my {Parent} ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Inheritance confused
by derby (Abbot) on Dec 07, 2015 at 14:34 UTC | |
Re^3: Inheritance confused
by Apero (Scribe) on Dec 07, 2015 at 17:12 UTC | |
by exilepanda (Friar) on Dec 08, 2015 at 07:03 UTC |
In Section
Seekers of Perl Wisdom