|
-
Jan 6th, 2010, 11:54 PM
#1
Thread Starter
Hyperactive Member
why we need to override tostring method
hi,
i have found a class with two properties, name and id...
id is set and get directly using property ....
but name is only set using property and returning name using overriding the tostring method in the class....
i have seen many times, that the tostring() method is overrided in a class... can anyone brief why that done ?
thankzzzzzzz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|