It refers to the type "class". Please correct me if i am wrong.
Thanks, Mubeen Shaik
Joined: Aug 03, 2002
I was expecting you to answer "a3 refers to an object of type (or class) A11". So when you try to print such an object the class' toString() method would be called. And what does the toString() method do for class A11? It returns the string "A11".
Joined: Aug 30, 2004
so when you try to print such an object the class' toString() method would be called.
why would the method be implicitly called ?
Joined: Mar 13, 2004
When you use an object reference "r" where a String is needed, "r" is treated like "r.toString()", which returns a String.