Tuesday, January 31, 2006

What if...

Having just explained to a friend what I have learnt using the Spring framework, one thought came to me: an object's methods are divided into three groups. These groups are:
  • methods which are part of an interface implementation,
  • methods which express depedencies,
  • ancillary methods which matter only for the inner workings of the object at hand (and of its hierarchy).
So, what if these three groups where used instead of the classic visibility modifiers (public, protected, private, package etc.)?