Dave Smith - 2015-07-23 02:27:01 -
In reply to message 1 from D
I don't hardly use interfaces either, the rule of thumb is to use an interface for distribution with a broad scope and to use an abstract class within a closely related implementation. Everything I do is closely related so abstract classes are the way I go.
Another thread mentioned using them within controller classes where you can then perform a logic check within your code to ensure they are an instance of a particular class. I have not used them in this way, however I have read somewhere that this can be useful, I will have to research a bit more to understand how and when to apply it.
My thoughts on interfaces have always been like yours, that they would be most useful in a development team environment, however I am intrigued with how they can be used within controllers.
Dave