To my mind, a subclass is supposed to specialize and overwrite superclass data, just as it can do the superclass' methods. Does anyone have a good example of when this would be bad.
See this and this for a couple of simple examples that show how problems can occur.
In Perl we have no real language support for separating out the published interface of the class from unimportant implementation details, which can cause nasty problems.
In reply to Re: subclass data clobbering superclass data
by adrianh
in thread subclass data clobbering superclass data
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |