Think about Loose Coupling | |
PerlMonks |
Re^3: Static method vs virtual methodby freonpsandoz (Beadle) |
on Oct 14, 2016 at 05:42 UTC ( [id://1173981]=note: print w/replies, xml ) | Need Help?? |
Doesn't this advice directly contradict the advice of lakshmananindia, who states that new() should be static? It seems that there is a lack of consensus on whether new() should be static or virtual. This is a real problem, because no facility is provided to force the caller to invoke new() the correct way by producing an error if the invocation is wrong.
In Section
Seekers of Perl Wisdom
|
|