📄 csdn_文档中心_oo三步曲之浅析oo的基石.htm
字号:
tmpDate = new Date();
date = tmpDate.getDate();
month= tmpDate.getMonth() + 1 ;
if(document.ns)
{
year1=tmpDate.getYear()
year= year1.toString().substr(1,2);
}
else
year= tmpDate.getYear();
document.write(year);
document.write(".");
document.write(month);
document.write(".");
document.write(date);
// -->
</SCRIPT>
</B> </TD></TR>
<TR bgColor=#999999>
<TD colSpan=3 height=1></TD></TR></TBODY></TABLE>
<TABLE border=0 width=770>
<TBODY>
<TR>
<TD align=middle bgColor=#fafafa class=td1 vAlign=top width=150><BR>
<SCRIPT src="CSDN_文档中心_OO三步曲之浅析OO的基石.files/other.js"></SCRIPT>
</TD>
<TD align=middle width=620>
<TABLE bgColor=#eeeeee border=0 cellPadding=0 cellSpacing=0 width=600>
<TBODY>
<TR bgColor=#ffffff>
<TD align=middle height=10 width=50></TD>
<TD align=right><A href="http://www.csdn.net/">CSDN</A> - <A
href="http://www.csdn.net/develop/">文档中心</A> - <FONT
color=#003399>其他</FONT> </TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399 height=10><FONT
color=#ffffff>标题</FONT></TD>
<TD><B> OO三步曲之浅析OO的基石</B> MatrixCpp(原作)
</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR>
<TR>
<TD align=middle bgColor=#003399><FONT color=#ffffff>关键字</FONT></TD>
<TD width=500> class,type,interface</TD></TR>
<TR>
<TD align=middle height=5></TD>
<TD align=middle width=500></TD></TR></TBODY></TABLE><!--文章说明信息结束//-->
<TABLE border=0 width=600>
<TBODY>
<TR>
<TD align=left><BR> <STRONG>注:文章所有权归作者 倪 硕
所有,欢迎任何形式的转载,不过请注明原始文章作者以及出处地点:<A
href="http://nishuo.35123.net/">http://nishuo.35123.net/</A>.并且欢迎访问<A
href="http://www.csdn.net/develop/author/netauthor/MatrixCpp/">MatrixCpp的专栏</A></STRONG>
<P align=center class=MsoNormal style="TEXT-ALIGN: center"><B><SPAN
lang=EN-US style="FONT-SIZE: 22pt; mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes">------------------------------------------</SPAN></SPAN></B></P>
<P align=center class=MsoNormal style="TEXT-ALIGN: center"><B><SPAN
lang=EN-US style="FONT-SIZE: 22pt; mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>OO</SPAN></B><B><SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 22pt; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">三步曲</SPAN></B><B><SPAN
lang=EN-US
style="FONT-SIZE: 22pt; mso-bidi-font-size: 12.0pt"><?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></B></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">前言:面向对象程序设计(</SPAN><SPAN
lang=EN-US>Object-Oriented Programming,</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以下简称</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">)是一种起源于六十年代的</SPAN><SPAN
lang=EN-US>Simula</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言,发展已经将近三十年的程序设计思想。其自身理论已经十分完善,并被多种面向对象程序设计语言(</SPAN><SPAN
lang=EN-US>Object-Oriented Programming Language,</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以下简称</SPAN><SPAN
lang=EN-US>OOPL</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">)实现。如果把</SPAN><SPAN
lang=EN-US>Unix</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">系统看成是国外在系统软件方面的文化根基,那么</SPAN><SPAN
lang=EN-US>Smalltalk</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">语言无疑在</SPAN><SPAN
lang=EN-US>OOPL</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">领域和</SPAN><SPAN
lang=EN-US>Unix</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">持有相同地位。由于很多原因,国内大部分程序设计人员并没有很深的</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以及</SPAN><SPAN
lang=EN-US>OOPL</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">理论,很多人从一开始学习到工作很多年都只是接触到</SPAN><SPAN
lang=EN-US>c/c++,java,vb,delphi</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">等静态类型语言,而对纯粹的</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">思想以及作为</SPAN><SPAN
lang=EN-US>OOPL</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">根基的</SPAN><SPAN
lang=EN-US>Smalltalk</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">以及动态类型语言知之甚少,不知道其实世界上还有一些可以针对<SPAN
style="COLOR: black">变量</SPAN>不绑定类型的编程<SPAN
style="COLOR: black">语言。而这些对比却是深刻理解</SPAN></SPAN><SPAN lang=EN-US
style="COLOR: black">OO</SPAN><SPAN
style="COLOR: black; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">理论的重要部分,</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">而国内这方面的资料也为数不多。故把自己的一些</SPAN><SPAN
lang=EN-US>OO</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">学习心得写下来做为一个系列文章(一共三篇,第一篇描叙</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的一些基本但容易被误解的理论,第二篇主要说明各种</SPAN><SPAN
lang=EN-US>OOPL</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">演化和发展以及对于</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">理论的支持,第三篇主要是说模式和组件在</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的地位以及展望</SPAN><SPAN
lang=EN-US>OOP</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的未来),由于文章描叙的只是自己对于</SPAN><SPAN
lang=EN-US>OOP/OOPL</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的理解,错误以及浅薄之处再所难免,只是希望对大家能起到抛砖引玉的作用。</SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN
style="mso-spacerun: yes">
</SPAN></SPAN><B><SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 15pt; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">浅析</SPAN></B><B><SPAN
lang=EN-US
style="FONT-SIZE: 15pt; mso-bidi-font-size: 12.0pt">OO</SPAN></B><B><SPAN
style="FONT-FAMILY: 宋体; FONT-SIZE: 15pt; mso-bidi-font-size: 12.0pt; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的基石</SPAN></B><B><SPAN
lang=EN-US
style="FONT-SIZE: 15pt; mso-bidi-font-size: 12.0pt"><o:p></o:p></SPAN></B></P>
<P class=MsoNormal><SPAN lang=EN-US> <o:p></o:p></SPAN></P>
<P class=MsoNormal><B><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从抽象说起</SPAN><SPAN
lang=EN-US><o:p></o:p></SPAN></B></P>
<P class=MsoNormal><B><SPAN
lang=EN-US> <o:p></o:p></SPAN></B></P>
<P class=MsoNormal><B><SPAN lang=EN-US><SPAN
style="mso-tab-count: 1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -