File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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 ??
 
Similar Threads
Is it possilbe to create Gantt chart without any tool
every resource i should buy/ look into for this
CMP and paging ?
jsp to excel file
How to answer this interview question?