例如有两个类:
public class A
{
public int doSomething()
{
return 12;
}
}
public class B
{
private int something;
public int getSomething()
{
return something;
}
public void setSomething(int s)
{
something = s;
}
}
我可以将 in 的结果映射到doSomething()
inA
的某物B
吗?
感谢您的回答:)