posted 19 years ago
There are some more advanced techniques using reflection, but they don't add any advantage.
A object-oriented purist would prefer code that centralizes all direct references to das to one accessor method and one mutator method. This allows edits to be added in one place and lets you change the real das to, say, different units of measure without looking at every bit of code that depends on das. It also works better with JavaBeans.
Mike Gershman
SCJP 1.4, SCWCD in process