You are declaring myVariable
as having package access and your 2 classes reside in different packages. Thus the variable is not visible to inheriting classes. You can declare it with protected
access to be visible or put the 2 classes in the same package.
public abstract class MyAbstractClass {
protected int myVariable = 1;
protected abstract void FunctionThatUsesMyVariable();
}