in reply to Re^4: displaying package variable from inherited method.
in thread displaying package variable from inherited method.

The data is polymorphic, not the behaviour.

Same thing.

Look at how much work you're doing your way. Look at how little magic you need to do it my way.

Encapsulation, object-wise, is hiding data behind polymorphic behavior. I don't know how to say it any more plainly than this. Mixing raw data access and polymorphism usually bites me, and I think the fragility of your solution here is evidence that it's already biting you.

  • Comment on Re^5: displaying package variable from inherited method.

Replies are listed 'Best First'.
Re^6: displaying package variable from inherited method.
by wazoox (Prior) on Jun 11, 2006 at 12:57 UTC
    I understand your point now, thank you!