I note that for the simple example there, the methods and variables are completely independent of each other.
What happens when the child needs to affect the parent's values? I suspect it would be difficult to keep the Traditional child pure in a practical situation, and you'd end up with an inflexible hybrid child, or a significant re-implementation of the parent to handle the Traditional hijinks that ensue when get/set methods are skipped.
In reply to Re^5: Prevent direct acces to object's attributes
by SuicideJunkie
in thread Prevent direct acces to object's attributes
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |