This is called casting. Every class in java extends the class Object. In the last example the method accepts an Object as a parameter. To use the methods and variables of Item it must first be cast...
Type: Posts; User: copeg
This is called casting. Every class in java extends the class Object. In the last example the method accepts an Object as a parameter. To use the methods and variables of Item it must first be cast...