Original Post
What I am looking for: nitty-gritty rules of Java inheritance, specifically how the superclasses of constructors work and why it is that my composited class members don't seem to be allowed to be used in extended classes. I am looking for online resources, I can find the problem out myself.
What I am not looking for: another tutorial explaining how to make my black labrador named steve say "woof woof I am Steve, a subclass of dog".
My basic issue:
public class a
{
public a(;)
protected otherclass homevec;
protected otherclass startpos;
}
public class b extends a
{
public b(super();)
public b(float x, float y, float z, float w);
{
super();
//the problem: trying to do ANYTHING with any otherclass instance gets me a java NullPointerException at runtime, for example:
awaypos._x = x;
awaypos._y = y;
}
protected otherclass awaypos;
}
What I am not looking for: another tutorial explaining how to make my black labrador named steve say "woof woof I am Steve, a subclass of dog".
My basic issue:
public class a
{
public a(;)
protected otherclass homevec;
protected otherclass startpos;
}
public class b extends a
{
public b(super();)
public b(float x, float y, float z, float w);
{
super();
//the problem: trying to do ANYTHING with any otherclass instance gets me a java NullPointerException at runtime, for example:
awaypos._x = x;
awaypos._y = y;
}
protected otherclass awaypos;
}