Re: Where do you keep contants in Interfaces or in classes?



On Sun, 30 Mar 2008 11:07:37 -0700 (PDT), Royan <romayankin@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

Thanks a lot for the answer Stefan! I think i'll use interfaces then

If the constants are used to implement an interface, the put them in
an interface. Otherwise use classes, and possibly use import static to
cut the verbosity of using them.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages