JAVA编程实践—一切都是对象(含外文出处)
来源:56doc.com 资料编号:5D12627 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D12627
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 密 保 惠 帮助
资料介绍
JAVA编程实践—一切都是对象(含外文出处)(中文7100字,英文4600字)
作者姓名: Bruce Eckel
文章出处:《Thinking In Java,Fourth Edition》
摘要:本文主要对对象进行了详细的介绍,对我们以后使程序的设计更加完善、健壮有很大的帮助。
关键字:对象
一切都是对象
“如果我们说另一种不同的语言,那么我们就会发觉一个有些不同的世界。”
--LudwigWittgenstein(1889-1951)
“尽管以 C++为基础,但 Java 是一种更纯粹的面向对象程序设计语言”。
无论 C++还是 Java 都属于杂合语言。但在 Java 中,设计者觉得这种杂合并不象在 C++里那么重要。杂合语言允许采用多种编程风格;之所以说 C++是一种杂合语言,是因为它支持与 C 语言的向后兼容能力。由于 C++是C 的一个超集,所以包含的许多特性都是后者不具备的,这些特性使 C++在某些地方显得过于复杂。
Everything Is an Object
“If we spoke a different language, we would perceive a somewhat different world.”
Ludwig Wittgenstein (1889-1951)
Although it is based on C++, Java is more of a “pure” object-oriented language.
Both C++ and Java are hybrid languages, but in Java the designers felt that the hybridization was not as important as it was in C++. A hybrid language allows multiple programming styles; the reason C++ is hybrid is to support backward compatibility with the C language. Because C++ is a superset of the C language, it includes many of that language’s undesirable features, which can make some aspects of C++ overly complicated. |