111,098
社区成员




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);