﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-小软在学习-随笔分类-面向对象的开发、设计</title><link>http://www.cnitblog.com/Lily/category/1982.html</link><description>创新</description><language>zh-cn</language><lastBuildDate>Sat, 01 Oct 2011 06:48:18 GMT</lastBuildDate><pubDate>Sat, 01 Oct 2011 06:48:18 GMT</pubDate><ttl>60</ttl><item><title>面向对象的三个基本特征（讲解）</title><link>http://www.cnitblog.com/Lily/archive/2006/02/23/6860.html</link><dc:creator>小软</dc:creator><author>小软</author><pubDate>Thu, 23 Feb 2006 01:06:00 GMT</pubDate><guid>http://www.cnitblog.com/Lily/archive/2006/02/23/6860.html</guid><wfw:comment>http://www.cnitblog.com/Lily/comments/6860.html</wfw:comment><comments>http://www.cnitblog.com/Lily/archive/2006/02/23/6860.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/Lily/comments/commentRss/6860.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/Lily/services/trackbacks/6860.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 面向对象的三个基本特征（讲解）面向对象的三个基本特征是：封装、继承、多态。封装封装最好理解了。封装是面向对象的特征之一，是对象和类概念的主要特性。封装，也就是把客观事物封装成抽象的类，并且类可以把自己的数据和方法只让可信的类或者对象操作，对不可信的进行信息隐藏。继承面向对象编程 (OOP) 语言的一个主要功能就是“继承”。继承是指这样一种能力：它可以使用现有类的所有功能...&nbsp;&nbsp;<a href='http://www.cnitblog.com/Lily/archive/2006/02/23/6860.html'>阅读全文</a><img src ="http://www.cnitblog.com/Lily/aggbug/6860.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/Lily/" target="_blank">小软</a> 2006-02-23 09:06 <a href="http://www.cnitblog.com/Lily/archive/2006/02/23/6860.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>UML的概述</title><link>http://www.cnitblog.com/Lily/archive/2006/02/21/6779.html</link><dc:creator>小软</dc:creator><author>小软</author><pubDate>Tue, 21 Feb 2006 07:45:00 GMT</pubDate><guid>http://www.cnitblog.com/Lily/archive/2006/02/21/6779.html</guid><wfw:comment>http://www.cnitblog.com/Lily/comments/6779.html</wfw:comment><comments>http://www.cnitblog.com/Lily/archive/2006/02/21/6779.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/Lily/comments/commentRss/6779.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/Lily/services/trackbacks/6779.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">刚刚看的关于UML的概述:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN"><SPAN style="mso-spacerun: yes">&nbsp;</SPAN>1.用例图(use-case diagram):用于显示若干角色(actor)以及这些角色与系统提供的用例之间的连接关系。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">2.静态结构图<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>2.1类图(class diagram):用来表示系统中的类和类与类之间的关系。它是对系统静态结构的描述。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN"><SPAN style="mso-spacerun: yes">&nbsp; </SPAN>2.2对象图:对象图是类图的变化。两者之间的差别在于对象图表示的是类的对象实例而不是真实的类。对象图是类图的一个范例(example)。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">3.状态图:状态机的表示方式，它附加于类或方法，描述该类对外部激励的响应。使用状态图可以显示某个对象在其生命周期中依次经历的各种状态。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">4.序列图:一种交互图，显示参与特定交互操作的对象及其按时间顺序交换的消息。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">5.协作图:显示某组对象如何为了由一个用例描述的一个系统事件而与另一组对象进行协作的交互图。使用协作图可以显示对象角色之间的关系，如为实现某个操作或达到某种结果而在对象间交换的一组消息。如果需要强调时间和序列，最好选择序列图；如果需要强调上下文相关，最好选择协作图。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">6.活动图(activity diagram):反映一个连续的活动流，描述某个操作执行时的活动状况。要表示由内部生成的操作（而非外部事件）驱动的事件流，应使用活动图（活动图：状态图的一个特例，其中所有的状态都是动作状态，并且转换是由源状态中动作的完成触发的。）。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">7.组件图(component diagram):用来反映代码的物理结构。从组件图中，您可以了解各软件组件（如源代码文件或动态链接库）之间的编译器和运行时依赖关系。使用组件图可以将系统划分为内聚组件并显示代码自身的结构。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">8.部署图(deployment diagram):用来显示系统中软件和硬件的物理架构。从部署图中，您可以了解到软件和硬件组件之间的物理关系以及处理节点的组件分布情况。使用部署图可以显示运行时系统的结构，同时还传达构成应用程序的硬件和软件元素的配置和部署方式。<BR></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=center><IMG height=145 alt=o_UML.jpg src="http://www.cnitblog.com/images/cnitblog_com/lily/1972/o_UML.jpg" width=176 border=0></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><BR></P><o:p></o:p></SPAN>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: center; mso-layout-grid-align: none" align=center><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN"><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN">9.包图:在 UML 中用类似于文件夹的符号表示的模型元素的组合。系统中的每个元素都只能为一个包所有，一个包可嵌套在另一个包中。使用包图可以将相关元素归入一个系统。一个包中可包含附属包、图表或单个元素。<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt 10pt; TEXT-ALIGN: left; mso-layout-grid-align: none" align=left><SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-hansi-font-family: 'Times New Roman'; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt; mso-ansi-language: ZH-CN"><o:p>&nbsp;</o:p></SPAN></P><img src ="http://www.cnitblog.com/Lily/aggbug/6779.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/Lily/" target="_blank">小软</a> 2006-02-21 15:45 <a href="http://www.cnitblog.com/Lily/archive/2006/02/21/6779.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>