in reply to Re^4: OO manner of accessing static variables in a subclass?
in thread OO manner of accessing static variables in a subclass?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: OO manner of accessing static variables in a subclass?
by HipDeep (Acolyte) on Aug 11, 2016 at 19:11 UTC | |
|
Re^6: OO manner of accessing static variables in a subclass?
by Anonymous Monk on Aug 11, 2016 at 10:41 UTC |