<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to show class contained as attribute in another class"]]></title>
		<link>http://forums.visual-paradigm.com/posts/9.html</link>
		<description><![CDATA[Latest messages posted in the topic "How to show class contained as attribute in another class"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to show class contained as attribute in another class</title>
				<description><![CDATA[ Hi,<br> <br> I am a beginner with UML, so please forgive the basic nature of this question.<br> <br> I wish to depict the following common situation on a UML 2 class diagram:<br> <br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre>classA {}
 
 classB
 {
   private: classA myIdentifier;
 }
 </pre></td>
		</tr>
		</table><br> My question is: on the diagram, do I add an attribute to <b>ClassB</b> and give this the type <b>ClassA</b> or do I omit the attribute and put both classes on the diagram with an association between them?  Or do I do both?<br> <br> What is the preferred (correct?) way of showing this?<br> <br> Any help or advice would be very much appreciated.<br> <br> Best wishes, Patrick Skelton<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2893#22340.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2893#22340.html</link>
				<pubDate><![CDATA[Fri, 29 Feb 2008 20:16:57]]></pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:How to show class contained as attribute in another class</title>
				<description><![CDATA[ Hi Patrick,<br> <br> Please see if the image attached is what you are looking for.<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2893#22863.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2893#22863.html</link>
				<pubDate><![CDATA[Mon, 3 Mar 2008 16:53:58]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
	</channel>
</rss>