Help# Java - 爪哇娇娃
c*n
1 楼
Is there anyone wanting to help me on following question?
Class A{
private Hashtable d;
B b;
public void aaa{
b.ccc();
}
}
Class B
{
}
Given a variable f in B, I want A return d.get(f) to B. How can I do it? Since
d is a private member (a feature) of A, I do not want to send it to B.
Class A{
private Hashtable d;
B b;
public void aaa{
b.ccc();
}
}
Class B
{
}
Given a variable f in B, I want A return d.get(f) to B. How can I do it? Since
d is a private member (a feature) of A, I do not want to send it to B.