O'Reilly logo
  • Shayne Riley thinks this is interesting:

one reasonable approach is to ensure that the class never invokes any of its overridable methods and to document this fact


Cover of Effective Java, 2nd Edition


This is pretty much the exact opposite of what I've been following, which is to use the accessor methods even within the class. But he provides the alternative later: move them private, and expose the overridable methods which would call those private methods.