Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual C# 2005
This is the forum to discuss the Wrox book Beginning Visual C# 2005 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, Eric White; ISBN: 9780764578472
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 3rd, 2007, 04:15 AM
Authorized User
 
Join Date: Apr 2007
Location: , , .
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Larryz
Default Objects

Its seems that when you create a new object of your own design
certain methods seems to be defined automatically for it....

ToString() for example...

This is confusing, for me at least..

You can do things like myObject.ToString();

What is this doing...

why do you want to do that

i mean if you have an object, which is an instance of a class
this is odd..

why say for example myObject.Name, here you force the object to
return the Name field using the get { return name }, for example.

or you can call other defined publicly available methods. which you define and implement...

So why then allow myObject.ToString() although not implemented in object... it doesnt make sense to me... myObject.ToString() its like trying to convert the entire thing to a string.. and for what purpose..

Also the books says abstract classes cant be instantiated but
what does that mean.... I thought it meant you cant create an instance of it...but only derive from it... but you are partly creating and instance of it when you store fields values in it.... via a derived object.

Larry confused again , no change there then.. :)

Reply With Quote
  #2 (permalink)  
Old May 3rd, 2007, 06:50 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I posted a reply to these questions here:
http://p2p.wrox.com/topic.asp?TOPIC_ID=59427

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Value objects rayback_2 BOOK: Beginning Cryptography with Java 1 May 13th, 2008 05:04 PM
Immutable objects in C# viveksrivastava C# 1 December 13th, 2007 05:11 AM
asp objects and.ranieri Classic ASP Components 3 January 21st, 2005 05:40 AM
Returning Objects BSkelding Pro VB.NET 2002/2003 1 January 11th, 2005 10:22 AM
Com Objects henryh MySQL 0 July 2nd, 2003 03:56 PM



All times are GMT -4. The time now is 02:11 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.