Thanks
Originally posted by Ken Blair:
I call it bad code.
Originally posted by Maki Jav:
Is keeping constants in classes and using them elsewhere also a bad practise? I am talking about making classes soley for keeping constants...
Thanx in Advance,
Maki Jav
Originally posted by Campbell Ritchie:
Is there anything wrong with keeping constants in a class to use elsewhere?
In my opinion, no, provided you call your class an enum . . .
CR
Originally posted by Steve L. Williams:
How is it worse then passing needed objects all over the place, just because they contain needed constants.
There is a reason many java API classes have public static final variables.
Have an interface may not be the best way to go about it, but it is hardly crippling.
[ May 25, 2006: Message edited by: Steve L. Williams ]