+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Senior Member mikester2 has a brilliant future mikester2 has a brilliant future mikester2 has a brilliant future mikester2 has a brilliant future mikester2 has a brilliant future mikester2 has a brilliant future mikester2 has a brilliant future mikester2 has a brilliant future
    Join Date
    Jan 2004
    Posts
    199

    Object Oriented Question (java)

    Hay all,

    I have a question i've wondered about for about a year or so now. I'd be most greatful if anyone could help me with it. It may sound strange but here goes :

    In Java (and probs some other object oriented languages) you have Object as the base class and can accept Object types into a method for "stuff" to be done with them. I know Object represents other types of objects that extend from it, but how (at a low level) does the JVM keep track of this ? I mean if it has the pointers to data held in an Object where does it magically get the extra data pointers from when it is cast back into its real object type ?

    Hope that made some sort of sense,

    Any help would be great,

    Cheers
    -

  2. #2
    Elite Hacker skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute skiddieleet has a reputation beyond repute
    Join Date
    Mar 2003
    Posts
    1,407
    Hmm. I don't quite understand. Can you give a small code sample of what you're talking about? What extra data pointers are you talking about? Are you sure it actually does get extra data pointers?

Bookmarks

Posting Permissions

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

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides