This content has been marked as final. Show 2 replies
coolism wrote:That makes no sense.
*//Here, I want to call the constructor of class A without using "new A()"*
The whole purpose of a c'tor is to provide a valid initial state for a newly created object. Why would you want to call code that initializes an A, when you've created a new B, and don't have an A to initialize.
Perhaps if you explained why you want to do this--what you're actually trying to accomplish with it--someone may be able to give you an approach that's actually applicable.
Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.