Inheritance indicates an "is a" relationship. An instance of a subclass
is a specialized version of an instance of its superclass. It is easier to see if you use other names than "A" and "B" for your classes. For example:
About question 2: Member variables cannot be overridden just like methods.
About question 3: An object is "the thing itself" and a reference is something that points to the object. In
Java, variables are references to objects (unlike for example C++ where variables hold the objects themselves).
[ March 08, 2007: Message edited by: Jesper Young ]