static public void Main() { OuterClass oc = new OuterClass(); InnerClass ic = new InnerClass(oc); oc.show_oc_i1(); ic.change_OC_I1(10); oc.show_oc_i1(); ic.change_OC_I1(20); oc.show_oc_i1(); ic.change_OC_I1(30); oc.show_oc_i1(); ic.change_OC_I1(40); oc.show_oc_i1(); }
public InnerClass(OuterClass p_parent) { m_parent = p_parent; }