in reply to Why do you need abstract classes in Perl?

Even if Perl doesn't "need" to indicate that a class is abstract, you may make the design decision that your class structure will contain one. So it isn't a question of syntax, but of OO design.

And as with most other things related to OO Perl, you have to do it yourself :) I usually die with a helpful error message in abstract methods to inform the programmer that the method needs to be redefined.

/J

  • Comment on Re: Why do you need abstract classes in Perl?