I have an abstract class like this
public abstract class Abstractclass
{
public Abstractclass(int init)
{
}
}
public class test extends Abstractclass
{//errors on the line above
}
and a class that extends it in the class that extends the original one I get an error saying that the var was incorrect or something like that is there any work around to this?
Edit: the error says constructor Abstractclass in class game.Abstractclass cannot be applied to given types
AbstractClass does not have a default constructor. It’s only constructor takes one argument. Therefore class
testmust also have a constructor which callssuperand passes aint.