wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to use ??" Watch "how to use ??" New topic

how to use ??

Manal Ahmad

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

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

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
Don't get me started about those stupid light bulbs.
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
jsp to excel file
CMP and paging ?
How to answer this interview question?