admin wrote:The_Nick wrote:As far as I know an object is an object when new Object() is called.
No, that would be an Object (with capital O). An object (with a small o) is an object when you do a new on any class (not just Object class).
The question clearly says, "an object of class A", which means you are doing new A() (or new SubclassOfA() ). There is no ambiguity here.
HTH,
Paul.
The ambiguity I was talking about is not referred to Object or object but object and class.
For an object of class A to access the field or method of an object of class B, object A must be a subtype of B.
That's what I thought when I read the question. I thought that you meant "object" as the final product of the class ie: A object = new A();.
When you replied I see that you are refering at the Class more than the object itself (new A()). and everything then was clear.
Personally I think it would be clearer to replace object A and object B with class A and class B.
It's just my feedback to the question though, maybe it's me that I am getting wrong the meaning.
For the rest I love the software, I can only congratulate with all of you for the quality you provide.
Thanks.
The_Nick.