最新java编程思路,java编程策略
“尽管以C++为基础,但Java是一种更朴实的面向对象程序设计言语”。不管C++仍是Java都归于杂合言语。但在Java中,设计者觉得这种杂合并不象在C++里那么主要。杂合言语许可选用多种编程风格;之所以说C++是一种杂合言语,是因为它支持与C言语的向后兼容能力。由于C++是C的一个超集,所以包括的很多特性都是后者不具备的,这些特性使C++在某些当地显得过于杂乱。Java言语首先便假定了我们只希望进行面向对象的程序设计。也就是说,正式用它设计之前,有必要先将自己的思想转入一个面向对象的S界(除非早已习惯了这个S界的思想方法)。只要做好这个准备办公,与其他OOP言语相比,才干领会到Java的易学易用。在本章,我们将探讨Java程序的基本组件,并领会为何说Java乃至Java程序内的一切都是对象。JAVA编程思想.chm
("Although based on C, Java is a more modest object-oriented programming language". Both C and Java are classified as hybrid languages. But in Java, the designers feel that this hybridization is not as important as it is in C. Hybrid languages ??allow for a variety of programming styles; C is a hybrid language because it supports backward compatibility with C. Since C is a superset of C, it includes many features that the latter does not have, which makes C appear too cluttered in some places. The Java language first assumes that we only want to do object-oriented programming. That is to say, before formally using it to design, it is necessary to turn one's own thinking into an object-oriented world (unless one has long been accustomed to the way of thinking in this world). As long as this preparation is done well, compared with other OOP languages, we can understand the ease of learning and use of Java. In this chapter, we'll explore the basic components of a Java program and understand why Java, and indeed everything within a Java program, is an object.
JAVA programming ideas.chm)
页:
[1]