How to retrieve an instantiated object in another class

后端 未结 0 864
深忆病人
深忆病人 2021-01-23 05:44

This is my code

Class Test {
public SomeOtherClass objectA ;
objectA = new SomeOtherClass();

System.out.println("After instantiation :"+objectA )

}

C         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题