J
Jack Dowson
Hello Everyone:
I came across a demo yesterday,which use System.out.println(cla) to
print a sentence on screen.But "cla" here is a class name.There is only
one method in this class definede asublic String toString().
Here is my question:If a mehod like "public String to String()" defined
in a class,then the class name will represent a string in a String
context,right?
Any help will be greatly appreciated!
Dowson.
I came across a demo yesterday,which use System.out.println(cla) to
print a sentence on screen.But "cla" here is a class name.There is only
one method in this class definede asublic String toString().
Here is my question:If a mehod like "public String to String()" defined
in a class,then the class name will represent a string in a String
context,right?
Any help will be greatly appreciated!
Dowson.