how to get the number of encapsulations of an Object whitch have a recursive constructor ? like … Object(Object obj){}

前端 未结 0 653
忘掉有多难
忘掉有多难 2020-12-05 01:59
class Object{
public Int x;
Object(Object objet){};
}

Object Ob= new Object(new Object(new Object(new Object())));
  1. i want to calculate how ma
相关标签:
回答
  • 消灭零回复
提交回复
热议问题