public class Class_A {
private Class_B b;
.....
// some methods
}
*****************************
public class Class_A {
private
String abc;
public Class_B do() {
...
}
}
***************************
For the first code's case, should I draw A-->B
as the unidirectional association between A and B ? For the second code's code, I don't have Class_B type instance variable, but I have a method whose return type is Class_B, how should I draw the association between A and B ?
Thanks,
Ian