Results 1 to 2 of 2
  1. #1
    guest_user is offline Member
    Join Date
    May 2011
    Posts
    47
    Rep Power
    0

    Default Is an object array considered to be an object?

    Can I put in Object [] where Object is expected? because I saw that in a piece of code and compiled it without any errors

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,807
    Rep Power
    10

    Default

    Arrays are objects. You certainly can have an array of Object. However this is not recommended as you can insert an Animal, a Fruit, a Table, a Foo, a Whatchamacallit etc all into the same array. This makes no sense to store together such disparate objects.

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2011, 07:11 PM
  2. Replies: 23
    Last Post: 09-07-2010, 08:12 PM
  3. Replies: 2
    Last Post: 06-22-2010, 04:29 AM
  4. Replies: 1
    Last Post: 03-04-2009, 07:14 PM
  5. Replies: 1
    Last Post: 07-22-2008, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •