protected, instead of private, I could simply wrap it up and extend it in a
few lines of code and let polymorphism do its thing.
As it stands, I'll need to duplicate most of the code from
FormatNumberSupport.
--
Stuart Thiel
to the NumberFormat. A similar
reconfigureFormatter(DateFormat) could be added to the
FormatDateSupport class.
What do you think?
--
Stuart Thiel
Hello Henri,
Yes, that would solve my immediate problem. It is a bit of a one-off
hack, though. The follow-through would be to take a look at all the
classes and identify areas where hooks like that would be desirable.
It is perhaps a difference in philosophies of programming, but my
Hello Rusty,
I don't have the mentioned book, but I quickly found the article:
http://www.objectmentor.com/resources/articles/ocp.pdf
I'm afraid that such is not my interpretation of that article at all. It
seems to clearly suggest that an inviolate superclass, that can be
subclassed (what I