Results 1 to 2 of 2
  1. #1
    mapred.learn is offline Member
    Join Date
    Mar 2011
    Rep Power

    Default Object creation at runtime based on kind of input

    I have 3 kinds of input for an input parameter and depending on the kind of input for this parameter, I want to create a particular type of object for that run of the program.

    I also would like to make a base class for these 3 kinds and then at runtime, based on kind of input, create the type of the derived object.

    How can I do this ?


  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    You didn't bother to reply to the three helpful responses on your double-posted earlier question* and you still expect to get help here?


Similar Threads

  1. Dynamic Create Object based on user's input?
    By diskhub in forum New To Java
    Replies: 2
    Last Post: 03-08-2011, 05:47 PM
  2. Replies: 5
    Last Post: 07-09-2010, 07:14 AM
  3. Replies: 2
    Last Post: 06-22-2010, 05:29 AM
  4. object creation
    By enygma in forum Java Applets
    Replies: 0
    Last Post: 01-05-2010, 11:01 AM
  5. Single XSD Creation for input/output
    By lavanya82 in forum XML
    Replies: 0
    Last Post: 03-13-2009, 01:02 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