1. No, because that's a terrible idea. If I've created a class, why shouldn't you be able to inherit from it?
2. Perl objects are (by default) equal when they refer to the same memory address. It makes sense to override this if you have a more useful definition of equality.
3. No, Perl is weakly typed so has no need for anything equivalent to generics. There's little point in creating a List<T> template if lists accept all data types by default.
In reply to Re: Perl OOP
by tobyink
in thread Perl OOP
by QueenSvetlana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |