Having a class A which has a list of B as the following code displays:
I have two questions regarding this code:
1) Is it correct saying that A has-a B? ( I know that A has a list of B, however in terms of coupling it does create a relationship has-a)
2)Again in terms of coupling, would it make sense to say that B has- a String? (I know that B has a String as a field, however again considering in terms of coupling, saying that a class HAS-A String does not really help a programmer in OO design, I think would make sense only for real Classes like B has a A, not for wrapper classes ).
I would be glad to know what you guys think about it.
Thanks in advance.