Hello.
I'm having some small issues when attempting to extend a class. The example is an abstraction of what i'm attempting to do, but it still produces the same error message.
Code:
class Inheri{
protected Object ar;
protected Inheri1 ir;
public Inheri(Object o){
ar = o;
}
public Inheri(Object o, Inheri1 i){
ar = o;
ir = i;
}
//any old methods
}
And i'd like to just extend it, so:
Code:
class Inheri1 extends Inheri{
protected int yarr;
public Inheri1(){
//doesn't matter what goes here
}
}
It's producing the error message :
Code:
./Inheri1.java:5: cannot find symbol
symbol : constructor Inheri()
location: class Inheri
public Inheri1(){}
^
It seems to not like multiple constructors in the Inheri class, but I'm not entirely sure how to resolve it, as far as I can see everything is fine. I'm sure I'm sure I'm lacking an elementary understanding here though.
Thank you for any help in advance.
-Marcus