Hi
This is my source code (it does not work):
class A {
A(A()) {
System.out.println("Constructor of a constructor");
}
public static void main (
String [] args) {
A x = new A (A());
}
}
Is it possible to create a kind of a chain, that means, a constructor constructs a constructor?
The argument of the constructor should be a constructor. Maybe it is a kind of recursion.
Please give me some ideas. I want to clear my doubts.
Regards
Urs