I hope someone help me with the problem I'm having. I am trying write a method which move the x position of an object by a required amount. The object(s) are subclasses which combine on screen to make a picture.
I'm trying to call the methods from the superclass but each time I try I get the error
I'm trying to get the method to return the value from getpox which can then be used by the setpox method after the integer from increase has been added.
Can anyone help me understand what I'm doing wrong, hopefully if I know why it won't work I can figure out what I need to do.