single responsibility classes and interfaces. RRS feed

  • Question

  • I am reading and trying to learn single responsibility classes. I have seen and tried to read different material, example and tutorial.  Almost all of them are mentioning about the Interface and then implementing interface. but none said why we need to have interface.  What specific reason should I have in my mind when working on the single responsibilities principle that I say okay for that purpose i should create an interface first.

    As right now I am thinking I should just create interface for every single function (class) and not to get into much detail. But then there are some method does not have interface.

    i am a novice and a student

    Friday, April 12, 2013 7:19 AM


All replies