Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Inherited Object Constructor Question

by Arunbear (Parson)
on Sep 13, 2011 at 14:05 UTC ( #925704=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Inherited Object Constructor Question
in thread Inherited Object Constructor Question

If you replaced an instance of SNMPMonitor with an instance of SNMPMonitor::Plugin::MySQL_Monitor, would your program still run correctly? If not, then the latter should not be a subclass of the former (which is what the Liskov Substitution Principle says).

Yes it would be clearer to have methods common to all plugins in a base plugin (or role).


Comment on Re^3: Inherited Object Constructor Question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-08-23 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (173 votes), past polls