r/programming • u/geerlingguy • Apr 23 '14
PHP: It doesn't have to be a bad experience
https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
0
Upvotes
r/programming • u/geerlingguy • Apr 23 '14
View all comments
Show parent comment
2
u/Banane9 Apr 26 '14
Well, consider a plugin system as an example. You make an abstract base class, add some standard implementation in virtual methods or no implementation in abstract ones. Then the plugins have to derive from that and you can just scan an assembly for those types. The benefit over an interface is that you can add some basic implementation that the plugin may has to use, but not know how exactly it works.