Re: Where do you keep contants in Interfaces or in classes?
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 19:21:11 GMT
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
.
- References:
- Prev by Date: Re: file output in java : Notepad gives weird results
- Next by Date: Re: Byte to float conversion problem - PLEASE HELP
- Previous by thread: Re: Where do you keep contants in Interfaces or in classes?
- Next by thread: Re: Where do you keep contants in Interfaces or in classes?
- Index(es):
Relevant Pages
|
|