New object of class inside the class

后端 未结 2 1855
隐瞒了意图╮
隐瞒了意图╮ 2021-01-29 15:20

In Java, or other OOP languages-

class MyClass{
  int a=5;
  MyClass b=new MyClass();

  void mymeth()
  {
  }
}

Here, creating an object of th

2条回答
提交回复
热议问题