Hello everyone,
Well I guess my question is not complicated, but my knowledge of Java is very little and there fore I need some clarification. I have a file dep.java which contains the Class Relocation with some attributes private. Some methods Public and protected and a method public abstract seDeplcaer ();
Code:
Public abstract class dep / / I tried with and without abstract
{
private int posX;
private int posY;
private int Speed;
private int View;
private int rayonInfluence;
Public abstract void Move();
protected ...
}
Now I have another file dept.java where I define a dept class inheriting Relocation. In this class I defined the move method.
Code:
Public class dept extends dep
{
Public void Move(Animal [][] G)
{
...
}
}
But when i compile the program I get an error. Can any one help me with this, how to correct my code.
Bookmarks