Abstract Method Error
For some reason or other, I keep getting this error message:
Here is the coding that pertains to it inside class BoundedEnv:
public void eaten(Location obj)
// Remove the object from the grid.
theGrid[obj.row()][obj.col()] = null;
I guess the main question I have, is why is it an Abstract Method Error? The class is called correctly, with no var problems as far as I can tell. If needed, I can supply more information.
that error is thrown if a call to an abstract method is made at runtime, and can only be thrown if a class has been changed since the last time the currently executing method was compiled. Did you change the class BoundedEnv at all? I think you'll need to show the class BoundedEnv (or at least the methods row() and col(), and any methods they call).
The problem is, the method I'm calling is a void, not an abstract...
I don't have the coding for row() and col(), all I have for it is the class file. But, as far as I know, they just locate the coordinates of said object in a grid.
I do have the coding for BoundedEnv, but it is quite lengthy with all the comments that came with it. Want me to post it here slimmed down, or put a link to the complete code on here?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL