This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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.