Child classes shouldn't rely on private implementation details of their superclass.
Some OO languages have the concept of "protected" parts of their API somewhere between public and private — methods/attributes which subclasses may use, but are otherwise not part of the public API. In Perl, this can only really be accomplished by convention.
http://blogs.perl.org/users/toby_inkster/2014/07/method-privacy-in-perl.html
In reply to Re^5: Inheritance problem: Not a HASH ref
by tobyink
in thread Inheritance problem: Not a HASH ref
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |