Well, it may be confused about variable "a" since you have one both in the superclass and in the subclass, and it might not know which you're referring to, especially since both are public.