Forums Register Login

what is the relationship between these classes A & B?

+Pie Number of slices to send: Send
1>
2>

3>
4>

i am unable to be sure about whether the classes are in association or aggregation or composition or dependancy only..
+Pie Number of slices to send: Send
 

malaya nayak wrote:3>



listA.add(new s);
+Pie Number of slices to send: Send
 

malaya nayak wrote:
i am unable to be sure about whether the classes are in association or aggregation or composition or dependancy only..



Post the definitions of those words here. Then consider each example and suggest which you consider to be closest to each definition.
You have to be odd to be #1 - Seuss. An odd little ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 794 times.
Similar Threads
collections addAll method !!!!
ArrayList does it maintain order
Which are the problems? - About ArrayList
Generic query - wildcards
ArrayList issues?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:04:28.