We don't bite newbies here... much | |
PerlMonks |
Re: Testing inherited classesby choroba (Cardinal) |
on Nov 09, 2010 at 14:52 UTC ( [id://870316]=note: print w/replies, xml ) | Need Help?? |
Wouldn't it be better for Base to have a constructor that would die with "Cannot instantiate an abstract class"?
Update: You can also create Base::Test in your test script. Thus you can test what Base is really designed to do - to provide abstract parent.
In Section
Seekers of Perl Wisdom
|
|