if i have an abstract class, and define a variable "value" to be of type Object, then in the constructor of a subclass assign "value" to be something like Integer(4), is there any way i can use the Integer class methods with value? right now i have resorted to typecasting like so:
((Integer)value).intValue()
but i am wondering if there is some more official way... some way that makes "value" an Integer instead of an Object.
going to go eat dinner, look forward to your advice...
thanks
((Integer)value).intValue()
but i am wondering if there is some more official way... some way that makes "value" an Integer instead of an Object.
going to go eat dinner, look forward to your advice...
thanks