Results 1 to 3 of 3
  1. #1
    paty is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default problems with Instance Data

    I want to understand how to declare Instance Data?
    I really don't understand
    can you send me a sample code or give me a clear explanation?
    Thanks

  2. #2
    shanePreater is offline Member
    Join Date
    Jul 2007
    Location
    England, Bath
    Posts
    47
    Rep Power
    0

    Default

    WHen you have a class like Object this is a blueprint of what all objects are like an instance of a class (instance data) is a particular variable of this type which has state you create instances in several ways but essentially they all boil down to:
    Java Code:
    Object object = new Object();
    We have created an instance of the Object class called object by using the new operator and the () means we are using the default constructor.

    Does this make more sense now?

  3. #3
    paty is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

Similar Threads

  1. passing an array into an instance
    By lockmac in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 09:35 AM
  2. New Instance for SWT
    By srinivasa_v in forum SWT / JFace
    Replies: 1
    Last Post: 08-08-2007, 01:02 AM
  3. Problems with Jtable connected to data base
    By elizabeth in forum AWT / Swing
    Replies: 2
    Last Post: 08-07-2007, 04:24 PM
  4. Replies: 1
    Last Post: 08-06-2007, 05:38 PM
  5. Instance variable
    By Jack in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 04:00 AM

Posting Permissions

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