Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2016-09-26 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.