阅读背景:

在方法中返回封闭对象而不使用其引用名称

来源:互联网 

In java. How to return the same exceuting object in a return object(same) method without taking the name of the excecuting object as a parameter. For example, suppose there is a method in a class called X(parameters) with the same return type of the class. And I created an Object of the class let it be Y. And I invoke this method by Y.X(par). Can i return Y inside the method from this invocation in a special case. Is there a way in the java language to do this around other than declaring the method static and taking two paramters?In java. How to return the same exceuting objec




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: