File talk:AggregationAndComposition.svg

Plural class name

I think the class "Ducks" in this image should be renamed to "Duck", as class names are usually singular nouns, plus it would be consistent with the rest of the diagram. In Object_composition#UML Notation, the code example below the image uses the singular as well. Wikipedia didn't let me overwrite the image, either because I only registered recently or I'm doing something wrong. Would someone else please make the change instead? En-Cu-Kou (talk) 12:50, 20 February 2008 (UTC)Reply

Done. —Tobias Bergemann (talk) 07:58, 21 February 2008 (UTC)Reply

PNG preview

Right now, the PNG preview looks horrible, although the SVG source seems to be fine. Maybe a re-upload would help? I still don't have the necessary privileges for it. En-Cu-Kou (talk) 15:48, 30 November 2008 (UTC)Reply

Composition

The cardinality is wrong on the diagram. You have a life dependency between car and carburetor which means that any carburetor must have a car, therefore if you remove the car you also should remove the carburetor. Thus it can't be 0..1 but 1..1, 1..0, etc. If you wanna have a carburetor without car, then use an aggregation.--Charrua85 (talk) 22:54, 10 August 2009 (UTC)Reply

While I initially agreed with the above user, http://msdn.microsoft.com/en-us/library/aa475230.aspx also says that a multiplicity of 0..1 is allowed with composite relationships. I think it's stupid, but it appears that's how it is :-\

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.