So, the inheritance mechanism does not work for this?
The 'inheritance mechanism' is the -> operator, which is used in
Horse->speak();
but entirely absent (and so cannot work) in
Horse::speak("Horse");
which is an invocation of the Horse package's speak subroutine, which is undefined in the OPed example.
In reply to Re: Inheritance via class::derived_method Question
by AnomalousMonk
in thread Inheritance via class::derived_method Question
by How09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |