arrays ob objs

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2008
Posts: 17
Reputation: 3pid is an unknown quantity at this point 
Solved Threads: 0
3pid 3pid is offline Offline
Newbie Poster

arrays ob objs

 
0
  #1
Mar 9th, 2009
hey guys,
I built an array of objects but I don`t know how to access it`s methods or fields.It keeps sending me errors
How should I access them?
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: arrays ob objs

 
0
  #2
Mar 9th, 2009
Well, thats a little ambiguous

if you have an array of things

such as

  1. Thing[] mythings = new Thing[100];

you can access their methods just like any other normal variable but by adding the [n] option to say which of the objects you are using

Post a snippet of your code (use code tags), explain where its giving you an error and what, and what you expected..
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC