Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2015-10-09 05:50 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (233 votes), past polls