I should have pointed you to this documentation earlier: "perlootut - Object-Oriented Programming in Perl Tutorial".
Under Inheritance, you'll find "is-a"; under Composition, you'll find "has-a"; "needs-a" is not mentioned.
It sounds like your constructor should perhaps be more like: new(mode => $mode, data => $data); and you want a method like: is_file_mode().
— Ken
In reply to Re^5: OO manner of accessing static variables in a subclass?
by kcott
in thread OO manner of accessing static variables in a subclass?
by HipDeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |