XP is just a number | |
PerlMonks |
Re: Interfaces for the masses!by dokkeldepper (Friar) |
on Mar 23, 2006 at 17:03 UTC ( [id://538801]=note: print w/replies, xml ) | Need Help?? |
What about abstract classes? One can always prepare empty methods in a class that croak if they are not overwritten. The usage of SQL::Statement in DBI provides an example. BTW Java Interfaces are mostly used to mimic multiple inheritance or as a marker ("this class can this or that"). Both usages are not needed in perl because it can be done directly.
In Section
Meditations
|
|