islouis
Junior Member level 1
Hi:
I would like to ask some question about class in C#, my OO wasnt very good
i have a Class A, and Class B , what if class A require to have instance of class B, and class B need to call a memeber of class A, just 1 member, what should i do?
like the following:
public class A : other class
{
{
private B test = new B();
}
public void Amember()
{
XXX
}
}
and in Class B
i want to call the Amemeber() fm class A.. if i inheritance, i will get exception.
Thanks
I would like to ask some question about class in C#, my OO wasnt very good
i have a Class A, and Class B , what if class A require to have instance of class B, and class B need to call a memeber of class A, just 1 member, what should i do?
like the following:
public class A : other class
{
{
private B test = new B();
}
public void Amember()
{
XXX
}
}
and in Class B
i want to call the Amemeber() fm class A.. if i inheritance, i will get exception.
Thanks