111,119
社区成员
发帖
与我相关
我的任务
分享
public class A
{
public B inner = null;
public A(B other)
{
inner = other;
other.inner = this;
}
public A()//也需要一个无参的
{
}
}
public clBss B
{
public A inner = null;
public B(A other)
{
inner = other;
other.inner = this;
}
public B()//也需要一个无参的
{
}
}
使用
A o1 = new A();
B o2 = new B(o1);