in reply to Re: Simple inheritance question
in thread Simple inheritance question
Adding a constructor to One does not make any difference. Would have been nice if you could have named those "little things" since I have already read the man page, and all of "Intermediate Perl" (the OO book).
AFAICT it simply isn't possible to call a method from One in Two without using a class prefix. Simple confirmation of this (from someone who knows) will suffice, using One::test() instead of test() is fine, it just seems slightly silly, since One inherited Two's methods.
AFAICT it simply isn't possible to call a method from One in Two without using a class prefix. Simple confirmation of this (from someone who knows) will suffice, using One::test() instead of test() is fine, it just seems slightly silly, since One inherited Two's methods.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Simple inheritance question
by webfiend (Vicar) on Apr 23, 2010 at 16:38 UTC | |
by halfcountplus (Hermit) on Apr 23, 2010 at 16:59 UTC | |
by BrowserUk (Patriarch) on Apr 23, 2010 at 21:09 UTC | |
by ikegami (Patriarch) on Apr 23, 2010 at 20:40 UTC | |
by webfiend (Vicar) on Apr 23, 2010 at 17:12 UTC | |
by chromatic (Archbishop) on Apr 23, 2010 at 19:36 UTC |
In Section
Seekers of Perl Wisdom