Home > other >  In the interior of the class to create the class of the object
In the interior of the class to create the class of the object

Time:09-28

CodePudding user response:

?? aaaaaaaaaa

CodePudding user response:

?? aaaaaaaaaa

CodePudding user response:

Not sure, you think, if line, you this is an infinite recursion!! Do you want to instantiate a People, this object will instantiate a taller People, the son People and People will instantiate a grandson,,,,,,,, infinite loops, until the memory is full,,

CodePudding user response:

reference sdhexu reply: 3/f
not sure, you think, if line, you this is an infinite recursion!! Do you want to instantiate a People, this object will instantiate a child People again, the child People and People will instantiate a grandson,,,,,,,, infinite loops, until the memory is full,,


Unless a man is static,
 
Public class People
{
Public static People man=new People ();

//Your Other Code...
}
  • Related