Thus, Parent::identify should return the string 'Parent'. How do I create a second class, 'Child', so that Child::identify returns the value returned by name() in the Child package?package Parent; sub identify { return name(); } sub name { return 'Parent'; } 1;
In reply to Overriding 'static' methods of a perl package by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |