Hi
It is in Java.
class fd {
int x;
void generator (int i){ fd o=new fd (i);}
}
class ibj2 {
public static void main (String args[]){
fd ob=new fd ();
for (int j=0; j <=10; j++) ob.generator (j);
}
}
It is supposed that x=0 automatically since Java has a default constructer.