This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how to use ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to use ??" Watch "how to use ??" New topic
Author

how to use ??

Manal Ahmad
Greenhorn

Joined: Feb 22, 2005
Posts: 21
hello there how are you ???
i want to aske about how to use overriding object. toString



i hope someone help me


thanks alot

and also i want to aske about how can i change my nick to my real name i tryed manu time but i coudnt found ??

thanks alot
Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904
Hi,

When you override a method in a superclass you simply define the
same method in your class.

Note, that all classes are subclasses of Object.

Example: I wan't my class Soccer to print the players name when toString
is called:


/Svend Rost
Manal Ahmad
Greenhorn

Joined: Feb 22, 2005
Posts: 21
hi there

why we use this .name ??
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
i hope B Eckel is gonna forgive me for this copy paste.
from Thinking in Java:
Normally, when you say this, it is in the sense of �this object� or �the current object,� and by itself it produces the reference to the current object. In a constructor, the this keyword takes on a different meaning when you give it an argument list. It makes an explicit call to the constructor that matches that argument list


java amateur
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use ??