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 imbibing at the Monastery: (8)
As of 2016-10-21 10:00 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (288 votes). Check out past polls.