Yes, exactly. Then you can call Odometer methods on the od variable or interact directly with od's fields which will allow you to compare its state with that of the current object on which the...
Type: Posts; User: curmudgeon
Yes, exactly. Then you can call Odometer methods on the od variable or interact directly with od's fields which will allow you to compare its state with that of the current object on which the...
This is meaningless:
o = (Odometer)o;
You need to create an Odometer variable that is local to this method, have it refer to o, using a cast to Odometer of course, and use that variable to...