At first i want to say that
you should start from beginning.It's important to know
java code conventions.Way you coded , is it really easy to read ?
Are instance variables inherited? If yes, does a subclass have a local copy of the instance variable thats declared in superclass?
It is depend on Access modifier applied on instance variable in superclass.You need sound study of Member access modifiers topic.It's look small topic but it is a big and confusing topic.gud luck