Re: Getters/setters in interfaces
Posted: Tue Feb 05, 2008 7:48 am
As opposed to creating a concrete interface, superglued to the class it was designed for? I see little difference. Just because you are creating an interface, does not mean you are loosely coupling. If you have to create an interface for each class you create, due to the grainularity, you are actually creating more bulk.Chris Corbyn wrote:Except then you've tightly coupled your dependant class to a concrete class which will need to follow that code around everywhere == bulky.Jenk wrote:Let's also not forget that if an Interface is overly descriptive, you may as well not bother having an interface at all, and just use the classes interface as the er.. interface.