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).
|
---|
In Section
Seekers of Perl Wisdom