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

    Default Object creation at runtime based on kind of input

    Hi,
    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 ?

    Thanks,
    -JJ

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    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?

    db
    * how to run parallel processes ?
    * how to run parallel processes from a java program ?

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, 04:47 PM
  2. Replies: 5
    Last Post: 07-09-2010, 06:14 AM
  3. Replies: 2
    Last Post: 06-22-2010, 04:29 AM
  4. object creation
    By enygma in forum Java Applets
    Replies: 0
    Last Post: 01-05-2010, 10:01 AM
  5. Single XSD Creation for input/output
    By lavanya82 in forum XML
    Replies: 0
    Last Post: 03-13-2009, 12: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
  •