[3210] in java-interest
Re: Object Creation using Class.newInstance()
daemon@ATHENA.MIT.EDU (stevem@tcdl.co.uk)
Fri Nov 3 06:59:45 1995
From: stevem@tcdl.co.uk
Date: Fri, 3 Nov 1995 09:44:56 GMT
To: suresh@thomtech.com
Cc: java-interest@java.sun.com
I can see what you are trying to do but I think your over complicating the issue
You can just add the objects into the array directly e.g.
Shape shapeArray[4]
Rect r1(...) ;
shapeArray[0] = r1 ;
Arc a1(...) ;
shapeArray[1] = a1 ;
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com