|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^3: Inherited Object Constructor Questionby Arunbear (Vicar) |
| on Sep 13, 2011 at 14:05 UTC ( #925704=note: print w/ replies, xml ) | Need Help?? |
|
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).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||