Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Testing inherited classes

by choroba (Cardinal)
on Nov 09, 2010 at 14:52 UTC ( [id://870316]=note: print w/replies, xml ) Need Help??


in reply to Testing inherited classes

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://870316]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-23 21:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found