in reply to
Re: Re: Re: It's a dog, but what kind? (polymorphism , in Perl OO)
in thread It's a dog, but what kind? (polymorphism , in Perl OO)
good tutorial on polymorphism, some of the subclasses should override bark.
DOH! I meant to and forgot! Actually the subclass cocker
was going to override "wag_tail" since they
have short tails more or less wiggle their hind ends
instead. ;-)
Peter L. Berghold -- Unix Professional Peter at Berghold dot Net |
| |
Dog trainer, dog agility exhibitor, brewer of
fine Belgian style ales. Happiness is a warm, tired, contented dog curled up at your side and
a good Belgian ale in your chalice. |